Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 438240 | Differences between
and this patch

Collapse All | Expand All

(-)a/irkerhook.py (-7 / +1 lines)
Lines 274-287 class GitExtractor(GenericExtractor): Link Here
274
        # Design choice: for git we ship only the first line, which is
274
        # Design choice: for git we ship only the first line, which is
275
        # conventionally supposed to be a summary of the commit.  Under
275
        # conventionally supposed to be a summary of the commit.  Under
276
        # other VCSes a different choice may be appropriate.
276
        # other VCSes a different choice may be appropriate.
277
        commit.author_name = do("git log -1 '--pretty=format:%an' " + shellquote(commit.commit))
277
        commit.author = do("git log -1 '--pretty=format:%an' " + shellquote(commit.commit))
278
        commit.mail = do("git log -1 '--pretty=format:%ae' " + shellquote(commit.commit))
278
        commit.mail = do("git log -1 '--pretty=format:%ae' " + shellquote(commit.commit))
279
        commit.logmsg = do("git log -1 '--pretty=format:%s' " + shellquote(commit.commit))
279
        commit.logmsg = do("git log -1 '--pretty=format:%s' " + shellquote(commit.commit))
280
        # This discards the part of the author's address after @.
281
        # Might be be nice to ship the full email address, if not
282
        # for spammers' address harvesters - getting this wrong
283
        # would make the freenode #commits channel into harvester heaven.
284
        commit.author = commit.mail.split("@")[0]
285
        commit.author_date, commit.commit_date = \
280
        commit.author_date, commit.commit_date = \
286
            do("git log -1 '--pretty=format:%ai|%ci' " + shellquote(commit.commit)).split("|")
281
            do("git log -1 '--pretty=format:%ai|%ci' " + shellquote(commit.commit)).split("|")
287
        return commit
282
        return commit
288
- 

Return to bug 438240