|
Lines 275-289
class GitExtractor(GenericExtractor):
Link Here
|
| 275 |
# Design choice: for git we ship only the first message line, which is |
275 |
# Design choice: for git we ship only the first message line, which is |
| 276 |
# conventionally supposed to be a summary of the commit. Under |
276 |
# conventionally supposed to be a summary of the commit. Under |
| 277 |
# other VCSes a different choice may be appropriate. |
277 |
# other VCSes a different choice may be appropriate. |
| 278 |
commit.author_name, commit.mail, commit.logmsg = \ |
278 |
commit.logmsg = do("git log -1 '--pretty=format:%s' " + shellquote(commit.commit)) |
| 279 |
do("git log -1 '--pretty=format:%an%n%ae%n%s' " + shellquote(commit.commit)).split("\n") |
279 |
commit.author = do("git log -1 '--pretty=format:%an' " + 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 = \ |
| 286 |
do("git log -1 '--pretty=format:%ai|%ci' " + shellquote(commit.commit)).split("|") |
| 287 |
return commit |
280 |
return commit |
| 288 |
|
281 |
|
| 289 |
class SvnExtractor(GenericExtractor): |
282 |
class SvnExtractor(GenericExtractor): |
| 290 |
- |
|
|