summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-04-10 11:33:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-11 19:54:15 (GMT)
commitd4ba07cac576e87fd194df0853ed523af6c58af1 (patch)
tree268713ccb87912f313e6b20482b88fbbb5264136 /Documentation
parentca593f795994badf7cd543d24d1ed24aabc0d8e1 (diff)
downloadgit-d4ba07cac576e87fd194df0853ed523af6c58af1.zip
git-d4ba07cac576e87fd194df0853ed523af6c58af1.tar.gz
git-d4ba07cac576e87fd194df0853ed523af6c58af1.tar.bz2
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 'Documentation')
-rw-r--r--Documentation/git-commit.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index c3725b2..488d873 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -139,6 +139,17 @@ but can be used to amend a merge commit.
as well. This is usually not what you want unless you
are concluding a conflicted merge.
+-o|--only::
+ Make a commit only from the paths specified on the
+ command line, disregarding any contents that have been
+ staged so far. This is the default mode of operation of
+ 'git commit' if any paths are given on the command line,
+ in which case this option can be omitted.
+ If this option is specified together with '--amend', then
+ no paths need be specified, which can be used to amend
+ the last commit without committing changes that have
+ already been staged.
+
-u|--untracked-files::
Show all untracked files, also those in uninteresting
directories, in the "Untracked files:" section of commit