From bfb0e9aaa8d7383e21007c7f5b8fbd9c46624e05 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 10 Jul 2018 21:59:53 +0100 Subject: [PATCH] commands.js: add --all alias to the -a option --- src/js/git/commands.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/git/commands.js b/src/js/git/commands.js index 7ba2c855..76a9165e 100644 --- a/src/js/git/commands.js +++ b/src/js/git/commands.js @@ -121,6 +121,7 @@ var commandConfig = { options: [ '--amend', '-a', + '--all', '-am', '-m' ], @@ -129,7 +130,7 @@ var commandConfig = { command.acceptNoGeneralArgs(); if (commandOptions['-am'] && ( - commandOptions['-a'] || commandOptions['-m'])) { + commandOptions['-a'] || commandOptions['--all'] || commandOptions['-m'])) { throw new GitError({ msg: intl.str('git-error-options') }); @@ -137,7 +138,7 @@ var commandConfig = { var msg = null; var args = null; - if (commandOptions['-a']) { + if (commandOptions['-a'] || commandOptions['--all']) { command.addWarning(intl.str('git-warning-add')); }