Re: [PATCH v6 3/4] notes: add notes.mergestrategy option to select default strategy
On Fri, Aug 14, 2015 at 2:06 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 16 quoted lines
> const char *value;
>
> if (!git_config_get_string_const(key, &value)) {
> if (parse_notes_strategy(value, strategy))
> git_die_config(key, "unknown notes merge strategy '%s'", value);
> return 0;
> }
> return 1;
>
> Or, the equivalent, but less indented:
>
> if (git_config_get_string_const(key, &value))
> return 1;
> if (parse_notes_strategy(value, strategy))
> git_die_config(key, "unknown notes merge strategy '%s'", value);
> return 0;