mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
headless wip
This commit is contained in:
parent
b7fb355b97
commit
e6942446df
2 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
4
todo.txt
4
todo.txt
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue