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

Re: git-diff-files -z output

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 22, 2005, 17:27 UTC
Message-ID
<20050522172737.GB17570@cip.informatik.uni-erlangen.de>
In-Reply-To
<7v3bsffadn.fsf@assigned-by-dhcp.cox.net>
Hello,
> Please see Documentation/diff-format.txt; find the below in the
> archive for the full description of why we wanted this format
> update.

got it thanks. I read that eMail before. But I thought that the tab -> space was a mistake, but it wasn't. So I am fine. I use the following code fragment to match it. Gitweb and co have to be adopted as well:

sub
process_git_diff_output
{
        my $str = shift || die("Need Input");
        my @in  = split("\0", $str);
        my @out = ();
        while (@in) {
                my @tmp = split(' ', shift(@in));
                push(@tmp, shift(@in), shift(@in));
                push(@out, [@tmp]);
        }
        return(@out);
}
	Thomas
Previous: Junio C HamanoNext: Thomas Glanzmann
Message 3 of 6 in “git-diff-files -z output”
  1. Thomas GlanzmannMay 22, 2005
  2. Junio C HamanoMay 22, 2005
  3. Thomas GlanzmannMay 22, 2005
  4. Thomas GlanzmannMay 22, 2005
  5. Thomas GlanzmannMay 22, 2005
  6. Junio C HamanoMay 22, 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.