diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2006-06-14 17:40:23 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-23 17:35:27 -0700 |
commit | 0d21efa51cc7de5250d5da46bceacda78ba35373 (patch) | |
tree | 7716a2c8723a3e5cf7d479654f47867d27451330 /xdiff/xdiff.h | |
parent | cda8ab59bbdb24b4ef87083781dac1f4f1b973a1 (diff) | |
download | git-0d21efa51cc7de5250d5da46bceacda78ba35373.tar.gz git-0d21efa51cc7de5250d5da46bceacda78ba35373.tar.xz |
Teach diff about -b and -w flags
This adds -b (--ignore-space-change) and -w (--ignore-all-space) flags to
diff. The main part of the patch is teaching libxdiff about it.
[jc: renamed xdl_line_match() to xdl_recmatch() since the former is used
for different purposes in xpatchi.c which is in the parts of the upstream
source we do not use.]
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'xdiff/xdiff.h')
-rw-r--r-- | xdiff/xdiff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xdiff/xdiff.h b/xdiff/xdiff.h index 2540e8a2c..2ce10b4c0 100644 --- a/xdiff/xdiff.h +++ b/xdiff/xdiff.h @@ -29,6 +29,9 @@ extern "C" { #define XDF_NEED_MINIMAL (1 << 1) +#define XDF_IGNORE_WHITESPACE (1 << 2) +#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 3) +#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE) #define XDL_PATCH_NORMAL '-' #define XDL_PATCH_REVERSE '+' |