Re: "make test" fails with current HEAD
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 18, 2005, 16:14 UTC
- Message-ID
- <Pine.LNX.4.64.0511180812200.13959@g5.osdl.org>
- In-Reply-To
- <7vbr0imlha.fsf@assigned-by-dhcp.cox.net>
On Fri, 18 Nov 2005, Junio C Hamano wrote:
Show 7 quoted lines
> > And at this point it becomes more and more tempting to have our > own internal diff generator, without relying on external diff. > > A midway compromise solution would be to detect if either file > is binary ourselves and not to call diff but always say "Binary > files difer".
Umm.. Why not just say "if the line after the 'diff' line doesn't start with '@@ ', then it's a binary diff"?
And not care at _all_ about what it says.
We require unified diffs, and they _always_ start with '@@ ' after the header. No need to check anything else.
Linus