builtin-commit.c: add -u as short name for --untracked-files
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>
Sitaram Chamarty committed
May 9, 2008 at 22:42 UTC
e1645901ed72f82ae55139bbae01eac1bf5899c9
1 file changed
+1
-1
builtin-commit.c
+1
-1
@@ -100,7 +100,7 @@ static struct option builtin_commit_options[] = {
100
OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
101
OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
102
OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
103
- OPT_BOOLEAN(0, "untracked-files", &untracked_files, "show all untracked files"),
103
+ OPT_BOOLEAN('u', "untracked-files", &untracked_files, "show all untracked files"),
104
OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"),
105
OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"),
106