Fix #79. Handle the since and until options in the authors output

This commit is contained in:
Ionică Bizău 2016-10-23 12:12:25 +03:00
parent 4c2219faf3
commit 7e67fff1ce
1 changed files with 2 additions and 1 deletions

View File

@ -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) {