Merge branch 'ab/pathname-encoding-doc'

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
maint
Junio C Hamano 2021-04-30 13:50:27 +09:00
commit 93e0b28dbb
1 changed files with 4 additions and 1 deletions

View File

@ -300,11 +300,14 @@ 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. 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:: --name-status::
Show only names and status of changed files. See the description Show only names and status of changed files. 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.


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