mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 05:12:11 +01:00
Minor fixes
This commit is contained in:
parent
95de8248e5
commit
6be69c065b
4 changed files with 985 additions and 956 deletions
|
@ -100,8 +100,8 @@ new Tilda(`${__dirname}/../package.json`, {
|
||||||
, lightOpt = action.options.light
|
, lightOpt = action.options.light
|
||||||
, dataPathOpt = action.options.data
|
, dataPathOpt = action.options.data
|
||||||
, globalActivityOpt = action.options.globalActivity
|
, globalActivityOpt = action.options.globalActivity
|
||||||
, rawOpt = action.options.raw,
|
, rawOpt = action.options.raw
|
||||||
authorOpt = action.options.author
|
, authorOpt = action.options.author
|
||||||
;
|
;
|
||||||
|
|
||||||
let options = {};
|
let options = {};
|
||||||
|
|
|
@ -632,8 +632,6 @@ GitStats.prototype.globalActivity = function (options, callback) {
|
||||||
repo: options
|
repo: options
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
console.log('options',options);
|
|
||||||
|
|
||||||
|
|
||||||
options.repo = Abs(options.repo);
|
options.repo = Abs(options.repo);
|
||||||
|
|
||||||
|
@ -645,9 +643,10 @@ GitStats.prototype.globalActivity = function (options, callback) {
|
||||||
, today = null
|
, today = null
|
||||||
, cal = []
|
, cal = []
|
||||||
;
|
;
|
||||||
|
|
||||||
var logArgs = ["log","--since", options.start.format(DATE_FORMAT), "--until", options.end.format(DATE_FORMAT)]
|
var logArgs = ["log","--since", options.start.format(DATE_FORMAT), "--until", options.end.format(DATE_FORMAT)]
|
||||||
if(options.author){
|
if(options.author){
|
||||||
logArgs = logArgs.concat(["--author",options.author])
|
logArgs = logArgs.concat(["--author", options.author])
|
||||||
}
|
}
|
||||||
|
|
||||||
GitLogParser(Spawn("git",logArgs , { cwd: options.repo }).stdout).on("commit", function(commit) {
|
GitLogParser(Spawn("git",logArgs , { cwd: options.repo }).stdout).on("commit", function(commit) {
|
||||||
|
|
1930
package-lock.json
generated
1930
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -286,4 +286,4 @@
|
||||||
"bloggify.json",
|
"bloggify.json",
|
||||||
"bloggify/"
|
"bloggify/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue