Skip to main content

Module quote_path

Module quote_path 

Source
Expand description

C-style path quoting compatible with Git’s quote.c / core.quotepath.

Git quotes pathnames for human-facing output (ls-files, diff --name-only, ls-tree --name-only) using a byte lookup table and optional full octal escaping for non-ASCII bytes when quote_path_fully is set (core.quotepath, default true).

Functions§

quote_c_style
Quote path in Git C style when needed, matching quote_c_style + core.quotepath.