Comparing version 0.1.7 to 0.1.8
@@ -37,2 +37,11 @@ var fs = require('fs'); | ||
var getStaged = function(data, cb) { | ||
exec("cd '"+folder+"';git status -s", function(err, stdout, stderr) { | ||
if(err !== null) | ||
return cb(err); | ||
data.unstaged = (stdout === '') ? false : true; | ||
return cb(null, data); | ||
}); | ||
} | ||
var getBranch = function(data, cb) { | ||
@@ -94,3 +103,3 @@ exec("cd '"+folder+"';git rev-parse --abbrev-ref HEAD", function(err, stdout, stderr) { | ||
async.waterfall([getUrl, getMeta, getBranch, getRemote, getPrevNext, getDate], | ||
async.waterfall([getUrl, getMeta, getStaged, getBranch, getRemote, getPrevNext, getDate], | ||
function(err, data) { | ||
@@ -97,0 +106,0 @@ if (err !== null) |
{ | ||
"name": "vizion", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=0.10" |
@@ -25,2 +25,4 @@ | ||
* type : 'git', | ||
* ahead : false, | ||
* unstaged : false, | ||
* branch : 'development', | ||
@@ -27,0 +29,0 @@ * commment : 'This is a comment', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60534
658
132