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:32 UTC
Message-ID
<20050522173243.GA18500@cip.informatik.uni-erlangen.de>
In-Reply-To
<20050522172737.GB17570@cip.informatik.uni-erlangen.de>

Hello, this is better (it strips the colon from the first mode):

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));
                $tmp[0] =~ s/^://g;
                push(@tmp, shift(@in), shift(@in));
                push(@out, [@tmp]);
        }
        return(@out);
}
	Thomas
Previous: Thomas GlanzmannNext: Thomas Glanzmann
Message 4 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.