Expand description
UTF-8 NFC path normalization for macOS-style filesystems (core.precomposeUnicode).
When the filesystem treats NFD and NFC spellings as the same path, Git stores paths in precomposed (NFC) form. This module implements the same normalization using ICU.
Functionsยง
- has_
non_ ascii_ utf8 - Return true if
scontains any non-ASCII UTF-8 byte. - precompose_
os_ string_ utf8_ path - Update
sin place when it is valid UTF-8 and NFC differs from the current spelling. - precompose_
utf8_ path - Normalize every
/-separated segment ofpathto NFC. - precompose_
utf8_ segment - Normalize a single path segment (no
/) to NFC when it contains non-ASCII UTF-8. - probe_
filesystem_ normalizes_ nfd_ to_ nfc - Probe whether creating a file under
git_dirwith an NFC filename makes the NFD spelling visible as the same path (macOS / HFS+ style).