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

Re: [PATCH 1/2] remote: add camel-cased *.tagOpt key, like clone

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 25, 2021, 20:00 UTC
Message-ID
<xmqqzgzrudcn.fsf@gitster.g>
In-Reply-To
<87wnuw6iaw.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I'm not quite sure what to make of this feedback in general. That you'd
> like the bugfix but we shouldn't bother with a regression test, or that
> we shouldn't bother with the fix at all?

I like the style update to make the callers use the canonical case (even though they do not have to), but the test that inspects the cases in the resulting configuration file may be too strict.

> But I don't agree that we should feel free to munge user config files
> within the bound of valid config syntax when we edit these files for
> users.

I agree with your sentiment in principle. I just wanted to make sure that future test writers agree with the principle, and also that they understand there are cases where end-user input may not match the output (e.g. when running "git config Vari.Able value" to an existing configuration file that has "[vari] ous = true", it may be less desirable to add "[Vari] Able = value" than to add to the existing "[Vari] section a new line "Able = value").

Previous: Ævar Arnfjörð Bjarmason
Message 8 of 8 in “remote: add camel-cased *.tagOpt key, like clone”
  1. 1/2 remote: add camel-cased *.tagOpt key, like cloneÆvar Arnfjörð Bjarmason, Feb 25, 2021
  2. 2/2 remote: write camel-cased *.pushRemote on renameÆvar Arnfjörð Bjarmason, Feb 25, 2021
  3. Junio C HamanoFeb 25, 2021
  4. Bert WesargMar 18, 2021
  5. Junio C HamanoFeb 25, 2021
  6. Junio C HamanoFeb 25, 2021
  7. Ævar Arnfjörð BjarmasonFeb 25, 2021
  8. Junio C HamanoFeb 25, 2021

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.