Sitaram Chamarty  committed e164590

builtin-commit.c: add -u as short name for --untracked-files

This makes the C code consistent with the documentation and the old shell

Signed-off-by: Sitaram Chamarty <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 2b36b14
  • Branches master

Comments (0)

Files changed (1)

File builtin-commit.c

 	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"),