Skip to content

Commit 0cfd333

Browse files
committed
Merge branch 'jc/doc-commit-only'
* jc/doc-commit-only: Documentation/git-commit: clarify that --only/--include records the working tree contents
2 parents 4d86216 + d956a20 commit 0cfd333

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
@@ -250,9 +250,10 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
250250

251251
-o::
252252
--only::
253-
Make a commit only from the paths specified on the
253+
Make a commit by taking the updated working tree contents
254+
of the paths specified on the
254255
command line, disregarding any contents that have been
255-
staged so far. This is the default mode of operation of
256+
staged for other paths. This is the default mode of operation of
256257
'git commit' if any paths are given on the command line,
257258
in which case this option can be omitted.
258259
If this option is specified together with '--amend', then

0 commit comments

Comments
 (0)