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

ab/config-multi-and-nonbool (was Re: What's cooking in git.git (Feb 2023, #04; Wed, 22))

From
Glen Choo <chooglen@google.com>
Date
Feb 23, 2023, 21:10 UTC
Message-ID
<kl6lfsaw84vo.fsf@chooglen-macbookpro.roam.corp.google.com>
In-Reply-To
<xmqqbkllaxd7.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> * ab/config-multi-and-nonbool (2023-02-07) 10 commits
>  - for-each-repo: with bad config, don't conflate <path> and <cmd>
>  - config API: add "string" version of *_value_multi(), fix segfaults
>  - config API users: test for *_get_value_multi() segfaults
>  - for-each-repo: error on bad --config
>  - config API: don't lose the git_*get*() return values
>  - config API: have *_multi() return an "int" and take a "dest"
>  - versioncmp.c: refactor config reading next commit
>  - config API: add and use a "git_config_get()" family of functions
>  - config tests: add "NULL" tests for *_get_value_multi()
>  - config tests: cover blind spots in git_die_config() tests
>
>  Assorted config API updates.
>
>  Will merge to 'next'?
>  source: <cover-v5-00.10-00000000000-20230207T154000Z-avarab@gmail.com>

I would prefer to eject 06/10 [1] for now and leave it in for a future cleanup series. I haven't confirmed whether it's safe (the practical effect of that patch is that the *_get() functions can now return -1 instead of 1, so the patch is safe if all callers only check if the return value is zero, and not whether it has a particular sign), and I don't think 06/10 is absolutely necessary to the series.

But if we are already quite convinced that this is safe, I have no objections to merging it as-is.

[1] https://lore.kernel.org/git/patch-v5-06.10-b515ff13f9b-20230207T154000Z-avarab@gmail.com
Previous: Matthew John CheethamNext: Junio C Hamano
Message 5 of 6 in “What's cooking in git.git (Feb 2023, #04; Wed, 22)”
  1. Junio C HamanoFeb 23, 2023
  2. mc/credential-helper-www-authenticate (Re: What's cooking in git.git (Feb 2023, #04; Wed, 22))Victoria Dye, Feb 23, 2023
  3. Jeff KingFeb 23, 2023
  4. Matthew John CheethamFeb 27, 2023
  5. ab/config-multi-and-nonbool (was Re: What's cooking in git.git (Feb 2023, #04; Wed, 22))Glen Choo, Feb 23, 2023
  6. Junio C HamanoFeb 23, 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.