From: Jacob Keller Date: Fri, 14 Aug 2015 21:12:20 GMT Subject: Re: [PATCH v6 3/4] notes: add notes.mergestrategy option to select default strategy Message-ID: In-Reply-To: On Fri, Aug 14, 2015 at 2:06 PM, Eric Sunshine wrote: > 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; I like it. Will do.