mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +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: [
|
options: [
|
||||||
'--amend',
|
'--amend',
|
||||||
'-a',
|
'-a',
|
||||||
|
'--all',
|
||||||
'-am',
|
'-am',
|
||||||
'-m'
|
'-m'
|
||||||
],
|
],
|
||||||
|
@ -129,7 +130,7 @@ var commandConfig = {
|
||||||
command.acceptNoGeneralArgs();
|
command.acceptNoGeneralArgs();
|
||||||
|
|
||||||
if (commandOptions['-am'] && (
|
if (commandOptions['-am'] && (
|
||||||
commandOptions['-a'] || commandOptions['-m'])) {
|
commandOptions['-a'] || commandOptions['--all'] || commandOptions['-m'])) {
|
||||||
throw new GitError({
|
throw new GitError({
|
||||||
msg: intl.str('git-error-options')
|
msg: intl.str('git-error-options')
|
||||||
});
|
});
|
||||||
|
@ -137,7 +138,7 @@ var commandConfig = {
|
||||||
|
|
||||||
var msg = null;
|
var msg = null;
|
||||||
var args = null;
|
var args = null;
|
||||||
if (commandOptions['-a']) {
|
if (commandOptions['-a'] || commandOptions['--all']) {
|
||||||
command.addWarning(intl.str('git-warning-add'));
|
command.addWarning(intl.str('git-warning-add'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue