Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
merge-recursive: use DIFF_XDL_SET macro
author
Stefan Beller
<sbeller@google.com>
Thu, 29 Jun 2017 22:19:32 +0000
(15:19 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 30 Jun 2017 17:56:37 +0000
(10:56 -0700)
Instead of implementing this on our own, just use a convenience macro.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8c8e978
)
diff --git
a/merge-recursive.c
b/merge-recursive.c
index 62decd51cc74a9197abbda28dc8efd6f83287a6b..7a7d55aabeaf46bbd7f77b923e20a66ac4811d5e 100644
(file)
--- a/
merge-recursive.c
+++ b/
merge-recursive.c
@@
-2209,11
+2209,11
@@
int parse_merge_opt(struct merge_options *o, const char *s)
o->xdl_opts |= value;
}
else if (!strcmp(s, "ignore-space-change"))
o->xdl_opts |= value;
}
else if (!strcmp(s, "ignore-space-change"))
-
o->xdl_opts |= XDF_IGNORE_WHITESPACE_CHANGE
;
+
DIFF_XDL_SET(o, IGNORE_WHITESPACE_CHANGE)
;
else if (!strcmp(s, "ignore-all-space"))
else if (!strcmp(s, "ignore-all-space"))
-
o->xdl_opts |= XDF_IGNORE_WHITESPACE
;
+
DIFF_XDL_SET(o, IGNORE_WHITESPACE)
;
else if (!strcmp(s, "ignore-space-at-eol"))
else if (!strcmp(s, "ignore-space-at-eol"))
-
o->xdl_opts |= XDF_IGNORE_WHITESPACE_AT_EOL
;
+
DIFF_XDL_SET(o, IGNORE_WHITESPACE_AT_EOL)
;
else if (!strcmp(s, "renormalize"))
o->renormalize = 1;
else if (!strcmp(s, "no-renormalize"))
else if (!strcmp(s, "renormalize"))
o->renormalize = 1;
else if (!strcmp(s, "no-renormalize"))