Selaa lähdekoodia

Optimized getAuthors().

Heikki Hokkanen 18 vuotta sitten
vanhempi
commit
1e22b32eac
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1
    2
      statgit

+ 1
- 2
statgit Näytä tiedosto

@@ -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)