From 7e67fff1cea911b4e849bd9ca551bf014dc774f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 23 Oct 2016 12:12:25 +0300 Subject: [PATCH] Fix #79. Handle the since and until options in the authors output --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c385188..ed2cb6f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -526,7 +526,8 @@ GitStats.prototype.ansiCalendar = function (options, callback) { */ GitStats.prototype.authors = function (options, callback) { var repo = new Gry(options.repo); - repo.exec("shortlog -s -n --all", function (err, stdout) { + debugger + repo.exec(`shortlog -s -n --all --since "${options.start.toString()}" --until "${options.end.toString()}"`, function (err, stdout) { if (err) { return callback(err); } var lines = stdout.split("\n"); var pieData = stdout.split("\n").map(function (c) {