mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
revert all done
This commit is contained in:
parent
a8fce5a4ab
commit
6931992316
3 changed files with 48 additions and 6 deletions
|
@ -7692,12 +7692,16 @@ GitEngine.prototype.revert = function(whichCommits) {
|
||||||
// set up the promise chain
|
// set up the promise chain
|
||||||
_.each(toRebase, function(commit) {
|
_.each(toRebase, function(commit) {
|
||||||
chain = chain.then(function() {
|
chain = chain.then(function() {
|
||||||
chainStep(commit);
|
return chainStep(commit);
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// done! update our location
|
// 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);
|
this.animationQueue.thenFinish(chain, deferred);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9229,6 +9233,16 @@ AnimationFactory.prototype.playRefreshAnimationAndFinish = function(gitVisuals,
|
||||||
animationQueue.thenFinish(animation.getPromise());
|
animationQueue.thenFinish(animation.getPromise());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AnimationFactory.prototype.playRefreshAnimation = function(gitVisuals) {
|
||||||
|
var animation = new PromiseAnimation({
|
||||||
|
closure: function() {
|
||||||
|
gitVisuals.refreshTree();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
animation.play();
|
||||||
|
return animation.getPromise();
|
||||||
|
};
|
||||||
|
|
||||||
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
||||||
opacity = (opacity === undefined) ? 1 : opacity;
|
opacity = (opacity === undefined) ? 1 : opacity;
|
||||||
|
|
||||||
|
@ -23643,12 +23657,16 @@ GitEngine.prototype.revert = function(whichCommits) {
|
||||||
// set up the promise chain
|
// set up the promise chain
|
||||||
_.each(toRebase, function(commit) {
|
_.each(toRebase, function(commit) {
|
||||||
chain = chain.then(function() {
|
chain = chain.then(function() {
|
||||||
chainStep(commit);
|
return chainStep(commit);
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// done! update our location
|
// 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);
|
this.animationQueue.thenFinish(chain, deferred);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -31383,6 +31401,16 @@ AnimationFactory.prototype.playRefreshAnimationAndFinish = function(gitVisuals,
|
||||||
animationQueue.thenFinish(animation.getPromise());
|
animationQueue.thenFinish(animation.getPromise());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AnimationFactory.prototype.playRefreshAnimation = function(gitVisuals) {
|
||||||
|
var animation = new PromiseAnimation({
|
||||||
|
closure: function() {
|
||||||
|
gitVisuals.refreshTree();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
animation.play();
|
||||||
|
return animation.getPromise();
|
||||||
|
};
|
||||||
|
|
||||||
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
||||||
opacity = (opacity === undefined) ? 1 : opacity;
|
opacity = (opacity === undefined) ? 1 : opacity;
|
||||||
|
|
||||||
|
|
|
@ -639,12 +639,16 @@ GitEngine.prototype.revert = function(whichCommits) {
|
||||||
// set up the promise chain
|
// set up the promise chain
|
||||||
_.each(toRebase, function(commit) {
|
_.each(toRebase, function(commit) {
|
||||||
chain = chain.then(function() {
|
chain = chain.then(function() {
|
||||||
chainStep(commit);
|
return chainStep(commit);
|
||||||
});
|
});
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
// done! update our location
|
// 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);
|
this.animationQueue.thenFinish(chain, deferred);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,16 @@ AnimationFactory.prototype.playRefreshAnimationAndFinish = function(gitVisuals,
|
||||||
animationQueue.thenFinish(animation.getPromise());
|
animationQueue.thenFinish(animation.getPromise());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
AnimationFactory.prototype.playRefreshAnimation = function(gitVisuals) {
|
||||||
|
var animation = new PromiseAnimation({
|
||||||
|
closure: function() {
|
||||||
|
gitVisuals.refreshTree();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
animation.play();
|
||||||
|
return animation.getPromise();
|
||||||
|
};
|
||||||
|
|
||||||
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
||||||
opacity = (opacity === undefined) ? 1 : opacity;
|
opacity = (opacity === undefined) ? 1 : opacity;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue