mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
commands.js: add --force alias to the -f option
modeled after the current implementation of branch -d / branch -D
This commit is contained in:
parent
745c10c85a
commit
faf939d210
1 changed files with 4 additions and 2 deletions
|
@ -413,6 +413,7 @@ var commandConfig = {
|
||||||
'-d',
|
'-d',
|
||||||
'-D',
|
'-D',
|
||||||
'-f',
|
'-f',
|
||||||
|
'--force',
|
||||||
'-a',
|
'-a',
|
||||||
'-r',
|
'-r',
|
||||||
'-u',
|
'-u',
|
||||||
|
@ -458,8 +459,9 @@ var commandConfig = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (commandOptions['-f']) {
|
if (commandOptions['-f'] || commandOptions['--force']) {
|
||||||
args = commandOptions['-f'].concat(generalArgs);
|
args = commandOptions['-f'] || commandOptions['--force'];
|
||||||
|
args = args.concat(generalArgs);
|
||||||
command.twoArgsImpliedHead(args, '-f');
|
command.twoArgsImpliedHead(args, '-f');
|
||||||
|
|
||||||
// we want to force a branch somewhere
|
// we want to force a branch somewhere
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue