mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
revert all done
This commit is contained in:
parent
a8fce5a4ab
commit
6931992316
3 changed files with 48 additions and 6 deletions
|
@ -639,12 +639,16 @@ GitEngine.prototype.revert = function(whichCommits) {
|
|||
// set up the promise chain
|
||||
_.each(toRebase, function(commit) {
|
||||
chain = chain.then(function() {
|
||||
chainStep(commit);
|
||||
return chainStep(commit);
|
||||
});
|
||||
}, this);
|
||||
|
||||
// done! update our location
|
||||
// this.setTargetLocation('HEAD', base);
|
||||
chain = chain.then(_.bind(function() {
|
||||
this.setTargetLocation('HEAD', base);
|
||||
return this.animationFactory.playRefreshAnimation(this.gitVisuals);
|
||||
}, this));
|
||||
|
||||
this.animationQueue.thenFinish(chain, deferred);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue