]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'tb/precompose-prefix-too'
authorJunio C Hamano <gitster@pobox.com>
Fri, 12 Feb 2021 22:21:04 +0000 (14:21 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Feb 2021 22:21:04 +0000 (14:21 -0800)
commit8b25dee6155fd3816f62649da196a4f42cf5584e
treeebf471c8cceee2aeed2e567fb485624a15613a50
parent006c5f79be55c029d6f68ea0d5a33cb41d1b5e80
parent5c327502dbf7a27c8784c20037851206a87857c1
Merge branch 'tb/precompose-prefix-too'

When commands are started from a subdirectory, they may have to
compare the path to the subdirectory (called prefix and found out
from $(pwd)) with the tracked paths.  On macOS, $(pwd) and
readdir() yield decomposed path, while the tracked paths are
usually normalized to the precomposed form, causing mismatch.  This
has been fixed by taking the same approach used to normalize the
command line arguments.

* tb/precompose-prefix-too:
  MacOS: precompose_argv_prefix()
builtin/diff-files.c
builtin/diff.c
builtin/submodule--helper.c
git-compat-util.h
git.c
t/t3910-mac-os-precompose.sh