This repository was archived by the owner on Jun 22, 2022. It is now read-only.
This repository was archived by the owner on Jun 22, 2022. It is now read-only.
Statistics for date range #6
Open
Description
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;