git-commit-vandalism/xdiff
Linus Torvalds a9ed376b15 xdiff: generate "anti-diffs" aka what is common to two files
This fairly trivial patch adds a new XDL_EMIT_xxx flag to tell libxdiff
that we don't want to generate the _diff_ between two files, we want to
see the lines that are _common_ to two files.

So when you set XDL_EMIT_COMMON, xdl_diff() will do everything exactly
like it used to do, but the output records it generates just contain the
lines that aren't part of the diff.

This is for doing things like generating the common base case for a file
that was added in both branches.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-06-28 22:24:32 -07:00
..
xdiff.h xdiff: generate "anti-diffs" aka what is common to two files 2006-06-28 22:24:32 -07:00
xdiffi.c Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xdiffi.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xemit.c xdiff: generate "anti-diffs" aka what is common to two files 2006-06-28 22:24:32 -07:00
xemit.h Use a *real* built-in diff generator 2006-03-25 16:49:58 -08:00
xinclude.h xdiff: Show function names in hunk headers. 2006-03-27 18:43:51 -08:00
xmacros.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xprepare.c Teach diff about -b and -w flags 2006-06-23 17:35:27 -07: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 Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00
xutils.h Teach diff about -b and -w flags 2006-06-23 17:35:27 -07:00