projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0031f3e
)
Added command-line option to gather all stats from the start
author
Roland Mas
<lolando@debian.org>
Tue, 23 Feb 2010 13:02:22 +0000
(13:02 +0000)
committer
Roland Mas
<lolando@debian.org>
Tue, 23 Feb 2010 13:02:22 +0000
(13:02 +0000)
gforge/cronjobs/gather_scm_stats.php
patch
|
blob
|
history
diff --git
a/gforge/cronjobs/gather_scm_stats.php
b/gforge/cronjobs/gather_scm_stats.php
index 8ab03c1ff92bdb6376b4b8dda7a623863284390a..a699874134def9ff60eec35b9fb87a1ac8575f9c 100755
(executable)
--- a/
gforge/cronjobs/gather_scm_stats.php
+++ b/
gforge/cronjobs/gather_scm_stats.php
@@
-43,7
+43,10
@@
if (!$res) {
return false;
}
-$mode = 'day' ; // Override to 'all' to parse the whole history
+$mode = 'day' ;
+if (count ($argv) >= 2 && $argv[1] == '--all') {
+ $mode = 'all' ;
+}
while ($data = db_fetch_array ($res)) {
if ($mode == 'day') {