浏览代码

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)