Re: git-diff-files -z output
- From
- Thomas 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