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

Re: [PATCH/RFC (take 2)] gitweb: New improved patchset view

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 30, 2006, 23:32 UTC
Message-ID
<200610310032.09726.jnareb@gmail.com>
In-Reply-To
<7v7iyhv29o.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 9 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
>> I have realized that it is not as easy as it sounds, at least for the
>> git-diff-tree output...
> 
> I do not think so.a The output is designed to be machine
> parsable.  See Documentation/diff-format.txt and also please
> refer to 65a9289d:diff-helper.c for a sample code to see how to
> parse the output.

What I wanted to say is that the output is not easy to use in "split first, parse later", with sometimes counting number of entries in between. With current format you rather have to pass in one go, for '-z' format reading filenames from the stream.

By the way, git-ls-tree -z uses TAB as a start of filename, while git-diff-tree -z uses NUL as a start of (first) filename. Why?

-- 
Jakub Narebski
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 9 in “Re: [PATCH/RFC (take 2)] gitweb: New improved patchset view”
  1. Luben TuikovOct 30, 2006
  2. Jakub NarebskiOct 30, 2006
  3. Junio C HamanoOct 30, 2006
  4. Junio C HamanoOct 30, 2006
  5. Jakub NarebskiOct 30, 2006
  6. Jakub NarebskiOct 30, 2006
  7. Junio C HamanoOct 30, 2006
  8. Jakub NarebskiOct 30, 2006
  9. Junio C HamanoOct 30, 2006

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.