mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
commands.js: add --all alias to the -a option
This commit is contained in:
parent
7637eb9139
commit
bfb0e9aaa8
1 changed files with 3 additions and 2 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue