From: Junio C Hamano Date: Tue, 01 Sep 2020 19:14:54 GMT Subject: Re: [PATCH] core.abbrev disables abbreviations Message-ID: In-Reply-To: Junio C Hamano writes: > Derrick Stolee writes: > >>> + else if (!strcasecmp(value, "false") || >>> + !strcasecmp(value, "no") || >>> + !strcasecmp(value, "off")) >>> + default_abbrev = the_hash_algo->hexsz; >> >> I'm not sure we need three synonyms for "no-abbrev" here. > > I do not particularly mind, but if we imitate the variety of various > boolean false, I'd prefer to see the code to parse them shared to > avoid them drifting apart over time. Just a clarification. - I do not particularly mind having multiple synonyms. - I do mind these one-off strcasecmp that will cause them to drift away from what we do for the boolean 'false'. Thanks.