瀏覽代碼

Fixed for git repository & cleaned up todo.

Heikki Hokkanen 18 年之前
父節點
當前提交
36d54263a7
共有 2 個文件被更改,包括 1 次插入5 次删除
  1. 0
    4
      doc/TODO.txt
  2. 1
    1
      statgit

+ 0
- 4
doc/TODO.txt 查看文件

@@ -1,11 +1,7 @@
1 1
 []
2
-- BUG broken for git repo
3 2
 - Files
4 3
 	- (T) File count by date
5
-- index: generated in N secs
6 4
 
7
-- save gnuplot files in inline code, or in current dir as 
8
-	- ability to change the gnuplot instructions run-time would be nice, though
9 5
 - style class for images (<div class="graph">)?
10 6
 - better style for images & tables (keep next to each other?)
11 7
 

+ 1
- 1
statgit 查看文件

@@ -78,7 +78,7 @@ class GitDataCollector(DataCollector):
78 78
 		self.total_authors = int(getoutput('git-log |git-shortlog -s |wc -l'))
79 79
 		self.total_commits = int(getoutput('git-rev-list HEAD |wc -l'))
80 80
 		self.total_files = int(getoutput('git-ls-files |wc -l'))
81
-		self.total_lines = int(getoutput('git-ls-files |xargs cat |wc -l'))
81
+		self.total_lines = int(getoutput('git-ls-files -z |xargs -0 cat |wc -l'))
82 82
 
83 83
 		self.activity_by_hour_of_day = {} # hour -> commits
84 84
 		self.activity_by_day_of_week = {} # day -> commits