Skip to content

Commit c2d4b4c

Browse files
stefanbellergitster
authored andcommitted
merge-recursive: use DIFF_XDL_SET macro
Instead of implementing this on our own, just use a convenience macro. Signed-off-by: Stefan Beller <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c8e978 commit c2d4b4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

merge-recursive.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,11 +2209,11 @@ int parse_merge_opt(struct merge_options *o, const char *s)
22092209
o->xdl_opts |= value;
22102210
}
22112211
else if (!strcmp(s, "ignore-space-change"))
2212-
o->xdl_opts |= XDF_IGNORE_WHITESPACE_CHANGE;
2212+
DIFF_XDL_SET(o, IGNORE_WHITESPACE_CHANGE);
22132213
else if (!strcmp(s, "ignore-all-space"))
2214-
o->xdl_opts |= XDF_IGNORE_WHITESPACE;
2214+
DIFF_XDL_SET(o, IGNORE_WHITESPACE);
22152215
else if (!strcmp(s, "ignore-space-at-eol"))
2216-
o->xdl_opts |= XDF_IGNORE_WHITESPACE_AT_EOL;
2216+
DIFF_XDL_SET(o, IGNORE_WHITESPACE_AT_EOL);
22172217
else if (!strcmp(s, "renormalize"))
22182218
o->renormalize = 1;
22192219
else if (!strcmp(s, "no-renormalize"))

0 commit comments

Comments
 (0)