Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-commit.c: add -u as short name for --untracked-files
author
Sitaram Chamarty
<sitaramc@gmail.com>
Fri, 9 May 2008 17:12:55 +0000
(22:42 +0530)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 11 May 2008 17:04:20 +0000
(10:04 -0700)
This makes the C code consistent with the documentation and the old shell
code.
Signed-off-by: Sitaram Chamarty <sitaramc@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2b36b14
)
diff --git
a/builtin-commit.c
b/builtin-commit.c
index a2da314ac6953475b4905222012e1667b0e2d2c5..2f4d6cc87e9c775f94bfd5463694f1408580f6a2 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-100,7
+100,7
@@
static struct option builtin_commit_options[] = {
OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
- OPT_BOOLEAN(
0
, "untracked-files", &untracked_files, "show all untracked files"),
+ OPT_BOOLEAN(
'u'
, "untracked-files", &untracked_files, "show all untracked files"),
OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"),
OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"),
OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"),
OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"),