git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 4 in “teach ls-tree how to handle names with embedded LF”
  1. teach ls-tree how to handle names with embedded LFJunio C Hamano, Apr 13, 2005
  2. Petr BaudisApr 13, 2005
  3. Junio C HamanoApr 14, 2005
  4. Petr BaudisApr 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.