ソースを参照

Don't revert getAuthors' sorting by commits by sorting again.

getAuthors sorts by commits, sorting it again negates that and instead
sorts the list alphabetically again which kind of defeats the purpose.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Wulf C. Krueger 16 年 前
コミット
d2b5b32071
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      gitstats

+ 1
- 1
gitstats ファイルの表示

@@ -771,7 +771,7 @@ class HTMLReportCreator(ReportCreator):
771 771
 
772 772
 		f.write('<table class="authors sortable" id="authors">')
773 773
 		f.write('<tr><th>Author</th><th>Commits (%)</th><th>+ lines</th><th>- lines</th><th>First commit</th><th>Last commit</th><th class="unsortable">Age</th><th>Active days</th><th># by commits</th></tr>')
774
-		for author in sorted(data.getAuthors(conf['max_authors'])):
774
+		for author in data.getAuthors(conf['max_authors']):
775 775
 			info = data.getAuthorInfo(author)
776 776
 			f.write('<tr><td>%s</td><td>%d (%.2f%%)</td><td>%d</td><td>%d</td><td>%s</td><td>%s</td><td>%s</td><td>%d</td><td>%d</td></tr>' % (author, info['commits'], info['commits_frac'], info['lines_added'], info['lines_removed'], info['date_first'], info['date_last'], info['timedelta'], info['active_days'], info['place_by_commits']))
777 777
 		f.write('</table>')