Skip to content

Commit

Permalink
Merge branch 'jc/doc-diff-name-only' into maint-2.45
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gitster committed Jun 28, 2024
2 parents db9d38d + 4986662 commit 0d56a59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -329,12 +329,13 @@ explained for the configuration variable `core.quotePath` (see
linkgit:git-config[1]).

--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]
manual page.

--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.
Just like `--name-only` the file names are often encoded in UTF-8.

Expand Down

0 comments on commit 0d56a59

Please sign in to comment.