mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 15:38:33 +02:00
animation work
This commit is contained in:
parent
2ba6065a0d
commit
880e1ca630
5 changed files with 82 additions and 47 deletions
|
@ -623,20 +623,16 @@ GitEngine.prototype.revert = function(whichCommits) {
|
|||
_.each(toRebase, function(oldCommit) {
|
||||
var newId = this.rebaseAltID(oldCommit.get('id'));
|
||||
|
||||
var commitMessage = intl.str(
|
||||
'git-revert-msg',
|
||||
{
|
||||
oldCommit: this.resolveName(oldCommit),
|
||||
oldMsg: oldCommit.get('commitMessage')
|
||||
}
|
||||
);
|
||||
var commitMessage = intl.str('git-revert-msg', {
|
||||
oldCommit: this.resolveName(oldCommit),
|
||||
oldMsg: oldCommit.get('commitMessage')
|
||||
});
|
||||
|
||||
var newCommit = this.makeCommit([base], newId, {
|
||||
commitMessage: commitMessage
|
||||
});
|
||||
|
||||
base = newCommit;
|
||||
|
||||
// animation stuff
|
||||
afterSnapshot = this.gitVisuals.genSnapshot();
|
||||
animationResponse.rebaseSteps.push({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue