Documentation/git-commit: clarify that --only/--include records the working tree contents
With the original phrasing, it is possible to misunderstand as if the contents in the index for only the specified paths are made into the new commit. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Nov 7, 2014 at 11:55 UTC
d956a20a69bc5aca954994ba0a33338ec5b1cc99
1 file changed
+3
-2
Documentation/git-commit.txt
+3
-2
@@ -211,9 +211,10 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
211
212
-o::
213
--only::
214
- Make a commit only from the paths specified on the
214
+ Make a commit by taking the updated working tree contents
215
+ of the paths specified on the
216
command line, disregarding any contents that have been
216
- staged so far. This is the default mode of operation of
217
+ staged for other paths. This is the default mode of operation of
218
'git commit' if any paths are given on the command line,
219
in which case this option can be omitted.
220
If this option is specified together with '--amend', then