Explorar el Código

Optimized getAuthors().

Heikki Hokkanen hace 18 años
padre
commit
1e22b32eac
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1
    2
      statgit

+ 1
- 2
statgit Ver fichero

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