pub fn parse_pathspecs_from_source(
data: &[u8],
nul_terminated: bool,
) -> Result<Vec<String>>Expand description
Read pathspec entries from raw file bytes (stdin or file), matching Git’s
--pathspec-from-file / --pathspec-file-nul rules.
- NUL mode: entries are separated by
NUL; each segment must not use C-style quoted lines (Git rejects quoted pathspecs in this mode). - Line mode: entries are separated by
LF; optionalCRbeforeLFis stripped; optional trailing line without a final newline is included; double-quoted lines are C-unquoted (including octal escapes).