Skip to content

Commit 93e0b28

Browse files
committed
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
2 parents 5980e0d + 9364bf4 commit 93e0b28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/diff-options.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,14 @@ explained for the configuration variable `core.quotePath` (see
300300
linkgit:git-config[1]).
301301

302302
--name-only::
303-
Show only names of changed files.
303+
Show only names of changed files. The file names are often encoded in UTF-8.
304+
For more information see the discussion about encoding in the linkgit:git-log[1]
305+
manual page.
304306

305307
--name-status::
306308
Show only names and status of changed files. See the description
307309
of the `--diff-filter` option on what the status letters mean.
310+
Just like `--name-only` the file names are often encoded in UTF-8.
308311

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

0 commit comments

Comments
 (0)