Skip to content

Commit d956a20

Browse files
committed
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 <[email protected]>
1 parent f174a25 commit d956a20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-commit.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,10 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
211211

212212
-o::
213213
--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
215216
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
217218
'git commit' if any paths are given on the command line,
218219
in which case this option can be omitted.
219220
If this option is specified together with '--amend', then

0 commit comments

Comments
 (0)