Jakub Narebski [off-list ref] writes:
By the way, the code to unwrap the path quoting can be found in gitweb
as unescape() subroutine... or git-add--interactive can use '-z' switch.
Yes, but if you use '-z' to read from plumbing, you would need your own
wrapping on the UI side to protect your output from control characters
(most notably LF) embedded in pathnames.
Also I had an impression that the compatibility implementation of
run_cmd_pipe() had some issues with NUL terminated list.