You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-vcs/gitstats/files/gitstats-0_pre131024-filter...

12 lines
601 B

--- gitstats 2016-03-24 10:57:18.000000000 -0300
+++ gitstats.mod 2016-03-24 10:57:11.355016439 -0300
@@ -321,7 +321,7 @@
# Collect revision statistics
# Outputs "<stamp> <date> <time> <timezone> <author> '<' <mail> '>'"
- lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -v ^commit']).split('\n')
+ lines = getpipeoutput(['git rev-list --pretty=format:"%%at %%ai %%aN <%%aE>" %s' % getcommitrange('HEAD'), 'grep -av ^commit | grep -ax \'.*\'']).split('\n')
for line in lines:
parts = line.split(' ', 4)
author = ''