summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaramc@gmail.com>2008-05-09 17:12:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-05-11 17:04:20 (GMT)
commite1645901ed72f82ae55139bbae01eac1bf5899c9 (patch)
tree411778c0102320db333b60225295a64ad6a3c92d /builtin-commit.c
parent2b36b146fa892a0a326eb2e35a39c9daf58fbe5e (diff)
downloadgit-e1645901ed72f82ae55139bbae01eac1bf5899c9.zip
git-e1645901ed72f82ae55139bbae01eac1bf5899c9.tar.gz
git-e1645901ed72f82ae55139bbae01eac1bf5899c9.tar.bz2
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>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index a2da314..2f4d6cc 100644
--- 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(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"),