Skip to content

Commit e164590

Browse files
sitaramcgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2b36b14 commit e164590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static struct option builtin_commit_options[] = {
100100
OPT_BOOLEAN('o', "only", &only, "commit only specified files"),
101101
OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
102102
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"),
104104
OPT_BOOLEAN(0, "allow-empty", &allow_empty, "ok to record an empty change"),
105105
OPT_STRING(0, "cleanup", &cleanup_arg, "default", "how to strip spaces and #comments from message"),
106106

0 commit comments

Comments
 (0)