Re: teach ls-tree how to handle names with embedded LF
- From
Petr Baudis <pasky@ucw.cz>
- Date
- Apr 13, 2005, 23:50 UTC
- Message-ID
- <20050413235018.GQ25711@pasky.ji.cz>
- In-Reply-To
- <7vd5sytf94.fsf@assigned-by-dhcp.cox.net>
Dear diary, on Thu, Apr 14, 2005 at 01:43:03AM CEST, I got a letter where Junio C Hamano <junkio@cox.net> told me that...
> GIT dircache can represent filenames with embedded newline. > Give ls-tree an option to terminate its output with '\0', so that > its output can be further processed with tools like "sort -z" > (and custom perl/python scripts).
Actually, what about just making it consistent with diff-tree and making it always terminate the records with '\0'?
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor