Skip to content

Commit

Permalink
Merge branch 'ab/pathname-encoding-doc'
Browse files Browse the repository at this point in the history
Clarify that pathnames recorded in Git trees are most often (but
not necessarily) encoded in UTF-8.

* ab/pathname-encoding-doc:
  doc: clarify the filename encoding in git diff
  • Loading branch information
gitster committed Apr 30, 2021
2 parents 5980e0d + 9364bf4 commit 93e0b28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Documentation/diff-options.txt
Expand Up @@ -300,11 +300,14 @@ explained for the configuration variable `core.quotePath` (see
linkgit:git-config[1]).

--name-only::
Show only names of changed files.
Show only names of changed files. 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
of the `--diff-filter` option on what the status letters mean.
Just like `--name-only` the file names are often encoded in UTF-8.

--submodule[=<format>]::
Specify how differences in submodules are shown. When specifying
Expand Down

0 comments on commit 93e0b28

Please sign in to comment.