mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Fix #79. Handle the since and until options in the authors output
This commit is contained in:
parent
4c2219faf3
commit
7e67fff1ce
1 changed files with 2 additions and 1 deletions
|
@ -526,7 +526,8 @@ GitStats.prototype.ansiCalendar = function (options, callback) {
|
||||||
*/
|
*/
|
||||||
GitStats.prototype.authors = function (options, callback) {
|
GitStats.prototype.authors = function (options, callback) {
|
||||||
var repo = new Gry(options.repo);
|
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); }
|
if (err) { return callback(err); }
|
||||||
var lines = stdout.split("\n");
|
var lines = stdout.split("\n");
|
||||||
var pieData = stdout.split("\n").map(function (c) {
|
var pieData = stdout.split("\n").map(function (c) {
|
||||||
|
|
Loading…
Reference in a new issue