impromptu-git
Advanced tools
Comparing version 0.2.0-beta.0 to 0.2.0-beta.1
13
index.js
@@ -135,4 +135,3 @@ var impromptu = require('impromptu') | ||
update: function(done) { | ||
var trackingBranchCommand = "git for-each-ref --format='%(upstream:short)'" + | ||
" $(git symbolic-ref -q HEAD)" | ||
var trackingBranchCommand = "git rev-parse --abbrev-ref --symbolic-full-name @{u}" | ||
@@ -264,5 +263,7 @@ impromptu.exec(trackingBranchCommand, function(err, result) { | ||
// This command *must* be passed through a formatter before its displayed | ||
// We exclude any unstaged added files. Searching for them scans the entire repo and causes | ||
// significant slow downs. | ||
git.register('_status', { | ||
update: function(done) { | ||
impromptu.exec('git status --porcelain -z 2>/dev/null', function(err, result) { | ||
impromptu.exec('git status -uno --porcelain -z 2>/dev/null', function(err, result) { | ||
if (err) { | ||
@@ -290,3 +291,3 @@ done(err, null) | ||
git._status(function(err, statuses) { | ||
done(err, new Statuses(statuses[type])) | ||
done(err, statuses ? new Statuses(statuses[type]) : null) | ||
}) | ||
@@ -301,3 +302,3 @@ } | ||
git["_" + type](function(err, statuses) { | ||
done(err, statuses.toString()) | ||
done(err, statuses ? statuses.toString() : '') | ||
}) | ||
@@ -311,3 +312,3 @@ } | ||
cache: 'repository', | ||
expire: 60, | ||
expire: 600, | ||
update: function(done) { | ||
@@ -314,0 +315,0 @@ git.isRepo(function(err, isRepo) { |
{ | ||
"name": "impromptu-git", | ||
"description": "A git module for Impromptu.", | ||
"version": "0.2.0-beta.0", | ||
"version": "0.2.0-beta.1", | ||
"homepage": "http://impromptu.sh/", | ||
@@ -6,0 +6,0 @@ "author": "Impromptu Team (http://impromptu.sh/)", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11584
319
0