mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
Added testable interactive rebase. It doesn't fully test everything (mainly the GUI), but is a start
This commit is contained in:
parent
55ac6da589
commit
72cc7d6bd3
2 changed files with 71 additions and 14 deletions
|
@ -569,6 +569,7 @@ var commandConfig = {
|
|||
sc: /^gr($|\s)/,
|
||||
options: [
|
||||
'-i',
|
||||
'--interactive-test',
|
||||
'--aboveAll',
|
||||
'-p',
|
||||
'--preserve-merges'
|
||||
|
@ -581,12 +582,23 @@ var commandConfig = {
|
|||
if (commandOptions['-i']) {
|
||||
var args = commandOptions['-i'].concat(generalArgs);
|
||||
command.twoArgsImpliedHead(args, ' -i');
|
||||
engine.rebaseInteractive(
|
||||
args[0],
|
||||
args[1], {
|
||||
aboveAll: !!commandOptions['--aboveAll']
|
||||
}
|
||||
);
|
||||
|
||||
if (commandOptions['--interactive-test']) {
|
||||
engine.rebaseInteractiveTest(
|
||||
args[0],
|
||||
args[1], {
|
||||
interactiveTest: commandOptions['--interactive-test']
|
||||
}
|
||||
);
|
||||
}
|
||||
else {
|
||||
engine.rebaseInteractive(
|
||||
args[0],
|
||||
args[1], {
|
||||
aboveAll: !!commandOptions['--aboveAll'],
|
||||
}
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue