summaryrefslogtreecommitdiff
path: root/gitdm
diff options
context:
space:
mode:
authorGermán Póo-Caamaño <gpoo@gnome.org>2011-06-24 00:17:30 -0700
committerGermán Póo-Caamaño <gpoo@gnome.org>2011-06-24 00:17:30 -0700
commitb2770f20b9a76a86fbec3f7be10b35c9ea1f3637 (patch)
treeebefe676226e9b377df14856d75bc89186af7011 /gitdm
parent19b718ef41f87f348ac45a90a5c4096ccbd0f7db (diff)
Added reports by file types
Added first attempt for reporting by file type: - A general report - A report aggregated by file type and contributor - A report aggregated by contributor and file type Signed-off-by: Germán Póo-Caamaño <gpoo@gnome.org>
Diffstat (limited to 'gitdm')
-rwxr-xr-xgitdm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gitdm b/gitdm
index 2c0193b..21d04f0 100755
--- a/gitdm
+++ b/gitdm
@@ -41,6 +41,7 @@ CFName = 'gitdm.config'
DirName = ''
Aggregate = 'month'
Numstat = 0
+ReportByFileType = 0
#
# Options:
@@ -66,8 +67,9 @@ def ParseOpts ():
global MapUnknown, DevReports
global DateStats, AuthorSOBs, FileFilter, AkpmOverLt, DumpDB
global CFName, CSVFile, CSVPrefix,DirName, Aggregate, Numstat
+ global ReportByFileType
- opts, rest = getopt.getopt (sys.argv[1:], 'ab:dc:Dh:l:no:p:r:suwx:z')
+ opts, rest = getopt.getopt (sys.argv[1:], 'ab:dc:Dh:l:no:p:r:stuwx:z')
for opt in opts:
if opt[0] == '-a':
AkpmOverLt = 1
@@ -94,6 +96,8 @@ def ParseOpts ():
FileFilter = re.compile (opt[1])
elif opt[0] == '-s':
AuthorSOBs = 0
+ elif opt[0] == '-t':
+ ReportByFileType = 1
elif opt[0] == '-u':
MapUnknown = 1
elif opt[0] == '-x':
@@ -485,3 +489,6 @@ if CSVFile:
if DevReports:
reports.DevReports (hlist, TotalChanged, CSCount, TotalRemoved)
reports.EmplReports (elist, TotalChanged, CSCount)
+
+if ReportByFileType and Numstat:
+ reports.ReportByFileType (hlist)