git-pretty-stats
git-pretty-stats copied to clipboard
Statistics for date range
Would be nice to have this feature. For now we can get this by modifying gitter.
--- /var/www/git-stats/vendor/klaussilveira/gitter/lib/Gitter/Repository.php
@@ -11,7 +11,10 @@
foreach ($logs as $log) {
$commit = new Commit;
$commit->importData($log);
- $commits[] = $commit;
+ $date = new \Gitter\Util\DateTime('2013-01-01 00:00:00');
+ if ($commit->getDate() > $date) {
+ $commits[] = $commit;
+ }
}
return $commits;
This is definitely a feature that is going to be implemented somewhere in the near future.