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

Re: [PATCH 0/2] gpg-interface: cleanup + convert low hanging fruit to configset API

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2023, 21:27 UTC
Message-ID
<xmqqlel6mswo.fsf@gitster.g>
In-Reply-To
<cover-0.2-00000000000-20230209T142225Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 12 quoted lines
> On Thu, Feb 09 2023, Jeff King wrote:
>
>> If the gpg code used git_config_get_string(), etc, then they could just
>> access each key on demand (efficiently, from an internal hash table),
>> which reduces the risk of "oops, we forgot to initialize the config
>> here". It does probably mean restructuring the code a little, though
>> (since you'd often have an accessor function to get "foo.bar" rather
>> than assuming "foo.bar" was parsed into an enum already, etc). That may
>> not be worth the effort (and risk of regression) to convert.
>
> I'd already played around with that a bit as part of reviewing Junio's
> change, this goes on top of that.

What's your intention of sending these? I think we are already in agreement that the churn may not be worth the risk, so if these are "and here is the churn would look like, not for application", I would understand it and appreciate it. But did you mean that these patches are for application? I am not sure...

Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 4 of 6 in “gpg-interface: cleanup + convert low hanging fruit to configset API”
  1. 0/2 gpg-interface: cleanup + convert low hanging fruit to configset APIÆvar Arnfjörð Bjarmason, Feb 9, 2023
  2. 1/2 {am,commit-tree,verify-{commit,tag}}: refactor away config wrapperÆvar Arnfjörð Bjarmason, Feb 9, 2023
  3. 2/2 gpg-interface.c: lazily get GPG config variables on demandÆvar Arnfjörð Bjarmason, Feb 9, 2023
  4. Junio C HamanoFeb 9, 2023
  5. Ævar Arnfjörð BjarmasonFeb 10, 2023
  6. Junio C HamanoFeb 10, 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.