ソースを参照

Optimized getAuthors().

Heikki Hokkanen 18 年 前
コミット
1e22b32eac
共有1 個のファイルを変更した1 個の追加2 個の削除を含む
  1. 1
    2
      statgit

+ 1
- 2
statgit ファイルの表示

@@ -171,8 +171,7 @@ class GitDataCollector(DataCollector):
171 171
 		return res
172 172
 	
173 173
 	def getAuthors(self):
174
-		lines = getoutput('git-rev-list --all --pretty=format:%an |grep -v ^commit |sort |uniq')
175
-		return lines.split('\n')
174
+		return self.authors.keys()
176 175
 	
177 176
 	def getFirstCommitDate(self):
178 177
 		return datetime.datetime.fromtimestamp(self.first_commit_stamp)