Skip to content

Commit 0d56a59

Browse files
committed
Merge branch 'jc/doc-diff-name-only' into maint-2.45
The documentation for "git diff --name-only" has been clarified that it is about showing the names in the post-image tree. * jc/doc-diff-name-only: diff: document what --name-only shows
2 parents db9d38d + 4986662 commit 0d56a59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/diff-options.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,13 @@ explained for the configuration variable `core.quotePath` (see
329329
linkgit:git-config[1]).
330330

331331
--name-only::
332-
Show only names of changed files. The file names are often encoded in UTF-8.
332+
Show only the name of each changed file in the post-image tree.
333+
The file names are often encoded in UTF-8.
333334
For more information see the discussion about encoding in the linkgit:git-log[1]
334335
manual page.
335336

336337
--name-status::
337-
Show only names and status of changed files. See the description
338+
Show only the name(s) and status of each changed file. See the description
338339
of the `--diff-filter` option on what the status letters mean.
339340
Just like `--name-only` the file names are often encoded in UTF-8.
340341

0 commit comments

Comments
 (0)