mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-30 17:54:28 +02:00
Add tests for currently supported log arguments
This commit is contained in:
parent
f178f6c118
commit
6e5d6a64e9
3 changed files with 69 additions and 2 deletions
|
@ -109,6 +109,8 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
|
|||
var chain = deferred.promise;
|
||||
var startTime = new Date().getTime();
|
||||
|
||||
var commands = [];
|
||||
|
||||
util.splitTextCommand(value, function(commandStr) {
|
||||
chain = chain.then(function() {
|
||||
var commandObj = new Command({
|
||||
|
@ -117,6 +119,7 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
|
|||
|
||||
var thisDeferred = Q.defer();
|
||||
this.gitEngine.dispatch(commandObj, thisDeferred);
|
||||
commands.push(commandObj);
|
||||
return thisDeferred.promise;
|
||||
}.bind(this));
|
||||
}, this);
|
||||
|
@ -124,7 +127,7 @@ HeadlessGit.prototype.sendCommand = function(value, entireCommandPromise) {
|
|||
chain.then(function() {
|
||||
var nowTime = new Date().getTime();
|
||||
if (entireCommandPromise) {
|
||||
entireCommandPromise.resolve();
|
||||
entireCommandPromise.resolve(commands);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue