(self)
return (
            format_text(f"\ncommit {self.sha}\n", STYLE["commit_info"])
            + f"Author: {self.info.author} <{self.info.email}>\n"
            + f"Date: {self.info.date}\n"
        )
Return the formatted patch.
Return the formatted patch.
Return the formatted patch .
def optional_header(self) -> str:
        """Return the formatted patch."""
        return (
            format_text(f"\ncommit {self.sha}\n", STYLE["commit_info"])
            + f"Author: {self.info.author} <{self.info.email}>\n"
            + f"Date: {self.info.date}\n"
        )
def optional_header ( self ) -> str : return ( format_text ( f"\ncommit {self.sha}\n" , STYLE [ "commit_info" ] ) + f"Author: {self.info.author} <{self.info.email}>\n" + f"Date: {self.info.date}\n" )