git/xdiff
Junio C Hamano 3ce8f08944 built-in diff: minimum tweaks
This fixes up a couple of minor issues with the real built-in
diff to be more usable:

 - Omit ---/+++ header unless we emit diff output;

 - Detect and punt binary diff like GNU does;

 - Honor GIT_DIFF_OPTS minimally (only -u<number> and
   --unified=<number> are currently supported);

 - Omit line count of 1 from "@@ -l,k +m,n @@" hunk header
   (i.e. when k == 1 or n == 1)

 - Adjust testsuite for the lack of -p support.

Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-03-25 16:50:00 -08:00
..
xdiff.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xdiffi.c Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xdiffi.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xemit.c Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xemit.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xinclude.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xmacros.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xprepare.c Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xprepare.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xtypes.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xutils.c built-in diff: minimum tweaks 2006-03-25 16:50:00 -08:00
xutils.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00