|
|
@@ -220,7 +220,7 @@ class GitDataCollector(DataCollector):
|
|
220
|
220
|
self.extensions[ext] = {'files': 0, 'lines': 0}
|
|
221
|
221
|
|
|
222
|
222
|
self.extensions[ext]['files'] += 1
|
|
223
|
|
- self.extensions[ext]['lines'] += int(getoutput('wc -l < "%s"' % line, quiet = True))
|
|
|
223
|
+ self.extensions[ext]['lines'] += int(getoutput('wc -l < %s' % line, quiet = True))
|
|
224
|
224
|
|
|
225
|
225
|
def getActivityByDayOfWeek(self):
|
|
226
|
226
|
return self.activity_by_day_of_week
|
|
|
@@ -474,7 +474,7 @@ class HTMLReportCreator(ReportCreator):
|
|
474
|
474
|
|
|
475
|
475
|
f.write('<img src="files_by_date.png" alt="Files by Date" />')
|
|
476
|
476
|
|
|
477
|
|
- f.write('<h2>Average file size by date</h2>')
|
|
|
477
|
+ #f.write('<h2>Average file size by date</h2>')
|
|
478
|
478
|
|
|
479
|
479
|
# Files :: Extensions
|
|
480
|
480
|
f.write('\n<h2>Extensions</h2>\n\n')
|
|
|
@@ -488,6 +488,20 @@ class HTMLReportCreator(ReportCreator):
|
|
488
|
488
|
f.write('</body></html>')
|
|
489
|
489
|
f.close()
|
|
490
|
490
|
|
|
|
491
|
+ ###
|
|
|
492
|
+ # Lines
|
|
|
493
|
+ f = open(path + '/lines.html', 'w')
|
|
|
494
|
+ self.printHeader(f)
|
|
|
495
|
+ f.write('<h1>Lines</h1>')
|
|
|
496
|
+ self.printNav(f)
|
|
|
497
|
+
|
|
|
498
|
+ f.write('<dl>\n')
|
|
|
499
|
+ f.write('<dt>Total lines</dt><dd>%d</dd>' % data.getTotalLOC())
|
|
|
500
|
+ f.write('</dl>\n')
|
|
|
501
|
+
|
|
|
502
|
+ f.write('</body></html>')
|
|
|
503
|
+ f.close()
|
|
|
504
|
+
|
|
491
|
505
|
###
|
|
492
|
506
|
# tags.html
|
|
493
|
507
|
f = open(path + '/tags.html', 'w')
|
|
|
@@ -620,6 +634,7 @@ plot 'files_by_date.dat' using 1:2 smooth csplines
|
|
620
|
634
|
<head>
|
|
621
|
635
|
<title>StatGit</title>
|
|
622
|
636
|
<link rel="stylesheet" href="statgit.css" type="text/css" />
|
|
|
637
|
+ <meta name="generator" content="statgit" />
|
|
623
|
638
|
</head>
|
|
624
|
639
|
<body>
|
|
625
|
640
|
""")
|