Преглед изворни кода

Portability: use python's reverse() instead of |tac.

This should make gitstats work on FreeBSD.

Thanks to Alexander Botero-Lowry.
Heikki Hokkanen пре 18 година
родитељ
комит
4274e58ac8
2 измењених фајлова са 8 додато и 1 уклоњено
  1. 6
    0
      doc/author.txt
  2. 2
    1
      gitstats

+ 6
- 0
doc/author.txt Прегледај датотеку

@@ -1,2 +1,8 @@
1 1
 Author can be reached by sending e-mail to <hoxu@users.sf.net>.
2 2
 Include "gitstats" in the subject or prepare to battle the spam filters.
3
+
4
+Also thanks to the following people:
5
+Alexander Botero-Lowry
6
+
7
+See also:
8
+  $ git-shortlog HEAD

+ 2
- 1
gitstats Прегледај датотеку

@@ -259,7 +259,8 @@ class GitDataCollector(DataCollector):
259 259
 		#  N files changed, N insertions (+), N deletions(-)
260 260
 		# <stamp> <author>
261 261
 		self.changes_by_date = {} # stamp -> { files, ins, del }
262
-		lines = getoutput('git-log --shortstat --pretty=format:"%at %an" |tac').split('\n')
262
+		lines = getoutput('git-log --shortstat --pretty=format:"%at %an"').split('\n')
263
+		lines.reverse()
263 264
 		files = 0; inserted = 0; deleted = 0; total_lines = 0
264 265
 		for line in lines:
265 266
 			if len(line) == 0: