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

Re: [PATCH] core.abbrev <off|false|no> disables abbreviations

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 1, 2020, 19:14 UTC
Message-ID
<xmqqtuwhcnrl.fsf@gitster.c.googlers.com>
In-Reply-To
<xmqqblipebto.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Derrick Stolee <stolee@gmail.com> 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.
Previous: Junio C HamanoNext: brian m. carlson
Message 12 of 13 in “core.abbrev <off|false|no> disables abbreviations”
  1. core.abbrev <off|false|no> disables abbreviationsEric Wong, Sep 1, 2020
  2. Derrick StoleeSep 1, 2020
  3. Eric WongSep 1, 2020
  4. Derrick StoleeSep 1, 2020
  5. Junio C HamanoDec 22, 2020
  6. Eric WongDec 22, 2020
  7. Junio C HamanoDec 22, 2020
  8. Junio C HamanoDec 23, 2020
  9. Derrick StoleeDec 23, 2020
  10. brian m. carlsonDec 23, 2020
  11. Junio C HamanoSep 1, 2020
  12. Junio C HamanoSep 1, 2020
  13. brian m. carlsonSep 1, 2020

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.