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

Re: [PATCH] setup: Only allow extenions.objectFormat to be specified once

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 27, 2023, 19:56 UTC
Message-ID
<xmqqwmwbl79k.fsf@gitster.g>
In-Reply-To
<87r0mjn4ly.fsf@gmail.froward.int.ebiederm.org>
"Eric W. Biederman" <ebiederm@gmail.com> writes:
> For me the fundamental question is if we allow multiples compatibility
> hashes or historical hashes how do we specify them?  Have the option
> appear more than once?  A comma separated list?

As you found out, we tend to use both, but the former does look more natural to me.

The "usual" pros and cons [*] involve how easy it is to override the settings given by more general low-priority configuration files with more specific high-priority configuration files, and does not apply to the extensions.* stuff that are by definition repository specific.

[Footnote]

As I said, this does not apply to the topic of this discussion, but just for completeness:

 * comma separated list allows overriding everything that was said
   earlier wholesale; there is no ambiguity, which is a plus, but
   there is no incremental updates, which may be a minus when
   flexibility is desired.
 * multi-valued configuration variable allows incremental additions,
   but ad-hoc syntax needs to be invented if incremental
   subtractions or clearing the slate to start from scratch is
   needed.
Previous: Eric W. Biederman
Message 4 of 4 in “setup: Only allow extenions.objectFormat to be specified once”
  1. setup: Only allow extenions.objectFormat to be specified onceEric W. Biederman, Sep 26, 2023
  2. Junio C HamanoSep 26, 2023
  3. Eric W. BiedermanSep 27, 2023
  4. Junio C HamanoSep 27, 2023

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.