headless wip

This commit is contained in:
Peter Cottle 2013-07-07 22:10:12 -07:00
parent b7fb355b97
commit e6942446df
2 changed files with 8 additions and 4 deletions

View file

@ -67,12 +67,16 @@ HeadlessGit.prototype.init = function() {
this.gitEngine.init(); this.gitEngine.init();
}; };
HeadlessGit.prototype.sendCommand = function(value) { HeadlessGit.prototype.sendCommand = function(value, cb) {
var deferred = Q.defer();
var chain = deferred.promise;
util.splitTextCommand(value, function(commandStr) { util.splitTextCommand(value, function(commandStr) {
var commandObj = new Command({ var commandObj = new Command({
rawStr: commandStr rawStr: commandStr
}); });
this.gitEngine.dispatch(commandObj, Q.defer()); var thisDeferred = Q.defer();
this.gitEngine.dispatch(commandObj, thisDeferred);
chain = chain.then(thisPromise);
}, this); }, this);
}; };

View file

@ -6,7 +6,6 @@ Before everything else:
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] increase test coverage over everything [ ] increase test coverage over everything
- unit and integration, but mostly for git operations - unit and integration, but mostly for git operations
[ ] green refactor tree compare to have map
Intl TODO Intl TODO
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
@ -34,7 +33,6 @@ Origin things:
Medium things: Medium things:
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ ] add visuals and text to show compare method
Cases to handle / things to edit Cases to handle / things to edit
======================= =======================
@ -54,6 +52,8 @@ Ideas for cleaning
Done things: Done things:
(I only started this on Dec 17th 2012 to get a better sense of what was done) (I only started this on Dec 17th 2012 to get a better sense of what was done)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[x] add visuals and text to show compare method
[x] green refactor tree compare to have map
[x] fix tests by stubbing out animation factory to resolve promises [x] fix tests by stubbing out animation factory to resolve promises
[x] better git clone and fake teamwork anywhere [x] better git clone and fake teamwork anywhere
[x] git pull animation [x] git pull animation