summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorKeith Cascio <keith@cs.ucla.edu>2009-02-16 19:26:49 -0800
committerJunio C Hamano <gitster@pobox.com>2009-03-04 00:56:51 -0800
commit628d5c2b707db207e47c42ca112b182aa171cfaa (patch)
tree095c322365931430834e43be0be3ed17a9d8786a /diff.h
parent0823ab4783654c82732996efd2710055885f3101 (diff)
downloadgit-628d5c2b707db207e47c42ca112b182aa171cfaa.tar.gz
Use DIFF_XDL_SET/DIFF_OPT_SET instead of raw bit-masking
Signed-off-by: Keith Cascio <keith@cs.ucla.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 6703a4fb4f..6616877ee5 100644
--- a/diff.h
+++ b/diff.h
@@ -69,6 +69,9 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q,
#define DIFF_OPT_TST(opts, flag) ((opts)->flags & DIFF_OPT_##flag)
#define DIFF_OPT_SET(opts, flag) ((opts)->flags |= DIFF_OPT_##flag)
#define DIFF_OPT_CLR(opts, flag) ((opts)->flags &= ~DIFF_OPT_##flag)
+#define DIFF_XDL_TST(opts, flag) ((opts)->xdl_opts & XDF_##flag)
+#define DIFF_XDL_SET(opts, flag) ((opts)->xdl_opts |= XDF_##flag)
+#define DIFF_XDL_CLR(opts, flag) ((opts)->xdl_opts &= ~XDF_##flag)
struct diff_options {
const char *filter;