git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] merge-recursive: use DIFF_XDL_SET macro

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 30, 2017, 17:54 UTC
Message-ID
<xmqq8tk9s6n1.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170629221932.3773-1-sbeller@google.com>
Stefan Beller <sbeller@google.com> writes:
> Instead of implementing this on our own, just use a convenience macro.
>
> Signed-off-by: Stefan Beller <sbeller@google.com>
> ---
Good eyes.  Thanks.
Show 22 quoted lines
>  merge-recursive.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/merge-recursive.c b/merge-recursive.c
> index 59e5ee41a8..1494ffdb82 100644
> --- a/merge-recursive.c
> +++ b/merge-recursive.c
> @@ -2210,11 +2210,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 |= XDF_IGNORE_WHITESPACE_CHANGE;
> +		DIFF_XDL_SET(o, IGNORE_WHITESPACE_CHANGE);
>  	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"))
> -		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"))
Previous: Stefan Beller
Message 2 of 2 in “merge-recursive: use DIFF_XDL_SET macro”
  1. merge-recursive: use DIFF_XDL_SET macroStefan Beller, Jun 29, 2017
  2. Junio C HamanoJun 30, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.