def show(self, commit):
        """Display one commit line.

        The output will be:
            <uuid> <#lines> <author> <short-commit-date>

        If verbose flag set, the output will be:
            <uuid> <#lines> <author+email> <long-date> <committer+email>
        """
        author = commit.author
        author_width = 25
        committer = ''
        commit_date = date_to_str(commit.committer_time, commit.committer_tz,
                                  self.verbose)
        if self.verbose:
            author += " %s" % commit.author_mail
            author_width = 50
            committer = " %s %s" % (commit.committer, commit.committer_mail)
        return "    {} {:>5d} {:{}s} {}{}".format(
            commit.uuid[:8], commit.line_count, author, author_width,
            commit_date, committer)
def show ( self , commit ) : author = commit . author author_width = 25 committer = '' commit_date = date_to_str ( commit . committer_time , commit . committer_tz , self . verbose ) if self . verbose : author += " %s" % commit . author_mail author_width = 50 committer = " %s %s" % ( commit . committer , commit . committer_mail ) return "    {} {:>5d} {:{}s} {}{}" . format ( commit . uuid [ : 8 ] , commit . line_count , author , author_width , commit_date , committer )
Display one commit line.

        The output will be:
            <uuid> <#lines> <author> <short-commit-date>

        If verbose flag set, the output will be:
            <uuid> <#lines> <author+email> <long-date> <committer+email>