summaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-04-10 13:33:09 +0200
committerJunio C Hamano <gitster@pobox.com>2008-04-11 12:54:15 -0700
commitd4ba07cac576e87fd194df0853ed523af6c58af1 (patch)
tree268713ccb87912f313e6b20482b88fbbb5264136 /builtin-commit.c
parentca593f795994badf7cd543d24d1ed24aabc0d8e1 (diff)
downloadgit-d4ba07cac576e87fd194df0853ed523af6c58af1.tar.gz
Document option --only of git commit
Its documentation was removed by 6c96753 (Documentation/git-commit: rewrite to make it more end-user friendly, 2006-12-08), even though it is referenced from a few places, including builtin-commit.c (as part of the commentary in the commit message template). Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> 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 45232a11c4..a228a43f75 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -97,7 +97,7 @@ static struct option builtin_commit_options[] = {
OPT_BOOLEAN('a', "all", &all, "commit all changed files"),
OPT_BOOLEAN('i', "include", &also, "add specified files to index for commit"),
OPT_BOOLEAN(0, "interactive", &interactive, "interactively add files"),
- OPT_BOOLEAN('o', "only", &only, ""),
+ 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"),