From: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
To: GIT <git@vger.kernel.org>
Subject: Re: git-diff-files -z output
Date: Sun, 22 May 2005 19:32:43 +0200 [thread overview]
Message-ID: <20050522173243.GA18500@cip.informatik.uni-erlangen.de> (raw)
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
next prev parent reply other threads:[~2005-05-22 17:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-22 17:05 git-diff-files -z output Thomas Glanzmann
2005-05-22 17:17 ` Junio C Hamano
2005-05-22 17:27 ` Thomas Glanzmann
2005-05-22 17:32 ` Thomas Glanzmann [this message]
2005-05-22 17:38 ` Thomas Glanzmann
2005-05-22 17:49 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050522173243.GA18500@cip.informatik.uni-erlangen.de \
--to=sithglan@stud.uni-erlangen.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).