Merge pull request #473 from waldyrious/patch-1

commands.js: add --force alias to the -f option (fix #472)
This commit is contained in:
Peter Cottle 2018-07-10 12:15:32 -07:00 committed by GitHub
commit 7637eb9139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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