commands.js: add --all alias to the -a option

This commit is contained in:
Waldir Pimenta 2018-07-10 21:59:53 +01:00 committed by GitHub
parent 7637eb9139
commit bfb0e9aaa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'));
}