|
|
@@ -43,6 +43,10 @@ class _FileHandles:
|
|
43
|
43
|
self.loc_info_writer.writerow(['Repo', 'CommitHash', 'TimeStamp', 'FileCount', 'LinesInserted', 'LinesDeleted',
|
|
44
|
44
|
'TotalLines'])
|
|
45
|
45
|
|
|
|
46
|
+ self.repo_info = open(os.path.join(output_dir, 'repo.csv'), 'w', encoding='utf8')
|
|
|
47
|
+ self.repo_info_writer = csv.writer(self.repo_info)
|
|
|
48
|
+ self.repo_info_writer.writerow(['Repo', 'TotalFiles', 'TotalLines'])
|
|
|
49
|
+
|
|
46
|
50
|
def close(self):
|
|
47
|
51
|
self.author_info.close()
|
|
48
|
52
|
self.author_totals_info.close()
|
|
|
@@ -50,6 +54,7 @@ class _FileHandles:
|
|
50
|
54
|
self.revision_info.close()
|
|
51
|
55
|
self.files_info.close()
|
|
52
|
56
|
self.loc_info.close()
|
|
|
57
|
+ self.repo_info.close()
|
|
53
|
58
|
|
|
54
|
59
|
|
|
55
|
60
|
class GitCsvGenerator():
|
|
|
@@ -108,7 +113,8 @@ class GitCsvGenerator():
|
|
108
|
113
|
def row_processor(row: LocByDate):
|
|
109
|
114
|
self.files.loc_info_writer.writerow([self.projectname, row.hash, row.stamp, row.file_count,
|
|
110
|
115
|
row.lines_inserted, row.lines_deleted, row.total_lines])
|
|
111
|
|
- gen_loc_data(self.conf, row_processor)
|
|
|
116
|
+ total_files, total_lines = gen_loc_data(self.conf, row_processor)
|
|
|
117
|
+ self.files.repo_info_writer.writerow([self.projectname, total_files, total_lines])
|
|
112
|
118
|
|
|
113
|
119
|
def get_author_info(self):
|
|
114
|
120
|
logging.info(f"Getting author info for {self.projectname}")
|