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
This commit is contained in:
Junio C Hamano 2024-06-28 15:53:14 -07:00
commit 0d56a5946a

View file

@ -329,12 +329,13 @@ explained for the configuration variable `core.quotePath` (see
linkgit:git-config[1]). linkgit:git-config[1]).
--name-only:: --name-only::
Show only names of changed files. The file names are often encoded in UTF-8. Show only the name of each changed file in the post-image tree.
The file names are often encoded in UTF-8.
For more information see the discussion about encoding in the linkgit:git-log[1] For more information see the discussion about encoding in the linkgit:git-log[1]
manual page. manual page.
--name-status:: --name-status::
Show only names and status of changed files. See the description Show only the name(s) and status of each changed file. See the description
of the `--diff-filter` option on what the status letters mean. of the `--diff-filter` option on what the status letters mean.
Just like `--name-only` the file names are often encoded in UTF-8. Just like `--name-only` the file names are often encoded in UTF-8.