Skip to content

Commit 7e67fff

Browse files
committed
Fix #79. Handle the since and until options in the authors output
1 parent 4c2219f commit 7e67fff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
526526
*/
527527
GitStats.prototype.authors = function (options, callback) {
528528
var repo = new Gry(options.repo);
529-
repo.exec("shortlog -s -n --all", function (err, stdout) {
529+
debugger
530+
repo.exec(`shortlog -s -n --all --since "${options.start.toString()}" --until "${options.end.toString()}"`, function (err, stdout) {
530531
if (err) { return callback(err); }
531532
var lines = stdout.split("\n");
532533
var pieData = stdout.split("\n").map(function (c) {

0 commit comments

Comments
 (0)