File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ def _get_dirty(self):
104
104
self ._dirty = True
105
105
106
106
def _get_authors_since_release (self ):
107
+ """Get list of authors since the last full release tag (.n are ignored)"""
107
108
self ._authors_since_release = []
108
109
self ._exec ('show-ref --tags' )
109
110
pat = re .compile ('^refs/tags/(?P<type>[A-Za-z]*)\-(?P<rel>(?P<date>[0-9]{8})(\.(?P<suffix>[0-9]*))?)$' )
@@ -138,11 +139,12 @@ def _get_authors_since_release(self):
138
139
139
140
self ._exec ('shortlog -s {}..HEAD' .format (last_rel ['ref' ]))
140
141
if self ._rc == 0 :
141
- self ._authors_since_release = sorted ([l .strip ().split (' \t ' , 1 )[1 ] for l in self ._out .splitlines ()], key = str .lower )
142
+ self ._authors_since_release = sorted ([l .strip ().split (None , 1 )[1 ] for l in self ._out .splitlines ()], key = str .lower )
142
143
143
144
def _get_authors (self ):
145
+ """Get all-time list of authors sorted by contributions"""
144
146
self ._authors = []
145
- self ._exec ('shortlog -sn' )
147
+ self ._exec ('shortlog -sn HEAD ' )
146
148
if self ._rc == 0 :
147
149
self ._authors = [l .strip ().split (None , 1 )[1 ] for l in self ._out .splitlines ()]
148
150
You can’t perform that action at this time.
0 commit comments