git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* builtin difftool parsing issue
@ 2016-12-22  4:53 Paul Sbarra
  2017-01-02 16:12 ` Johannes Schindelin
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Sbarra @ 2016-12-22  4:53 UTC (permalink / raw)
  To: johannes.schindelin; +Cc: davvid, dennis, git, gitster

Sadly, I haven't been able to figure out how to get the mbox file from
this tread into gmail, but wanted to report a parsing issue I've found
with the builtin difftool.

Original Patch:
https://public-inbox.org/git/ac91e4818cfb5c5af6b5874662dbeb61cde1f69d.1480019834.git.johannes.schindelin@gmx.de/#t

> + *status = *++p;
> + if (!status || p[1])
> + return error("unexpected trailer: '%s'", p);
> + return 0;

The p[1] null check assumes the status is only one character long, but
git-diff's raw output format shows that a numeric value can follow in
the copy-edit and rename-edit cases.

I'm looking forward to seeing the builtin difftool land.  I came across it
while investigating adding --submodule=diff (expanding on diff's
recent addition) support and this looks more promising then the perl
script.  Hopefully I will make some progress.  Any tips/pointers would
be greatly appreciated.

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-04  1:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-22  4:53 builtin difftool parsing issue Paul Sbarra
2017-01-02 16:12 ` Johannes Schindelin
2017-01-02 19:05   ` Paul Sbarra
2017-01-03 18:47     ` Stefan Beller
2017-01-04  1:05       ` Jacob Keller

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).