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

ab/parse-options-cleanup

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 13, 2021, 13:47 UTC
Message-ID
<87tuhlghnh.fsf@evledraar.gmail.com>
In-Reply-To
<xmqqv9239k15.fsf@gitster.g>
On Mon, Oct 11 2021, Junio C Hamano wrote:
Show 15 quoted lines
> * ab/parse-options-cleanup (2021-10-08) 10 commits
>  - parse-options: change OPT_{SHORT,UNSET} to an enum
>  - parse-options tests: test optname() output
>  - parse-options.[ch]: make opt{bug,name}() "static"
>  - commit-graph: stop using optname()
>  - parse-options.c: move optname() earlier in the file
>  - parse-options.h: make the "flags" in "struct option" an enum
>  - parse-options.c: use exhaustive "case" arms for "enum parse_opt_result"
>  - parse-options.[ch]: consistently use "enum parse_opt_result"
>  - parse-options.[ch]: consistently use "enum parse_opt_flags"
>  - parse-options.h: move PARSE_OPT_SHELL_EVAL between enums
>
>  Random changes to parse-options implementation.
>
>  Will merge to 'next'?

Yes, I think the v3 re-roll I've got addressed your concerns about enum patterns, and I've got some meaningful (with a very negative diffstat) changes waiting on it.

https://lore.kernel.org/git/cover-v3-00.10-00000000000-20211008T190536Z-avarab@gmail.com/
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 7 of 11 in “What's cooking in git.git (Oct 2021, #03; Mon, 11)”
  1. Junio C HamanoOct 12, 2021
  2. Submodules UX overhaul update (was: What's cooking in git.git (Oct 2021, #03; Mon, 11))Emily Shaffer, Oct 12, 2021
  3. Atharva RaykarOct 13, 2021
  4. ab/mark-leak-free-testsÆvar Arnfjörð Bjarmason, Oct 13, 2021
  5. ab/unpack-trees-leakfixÆvar Arnfjörð Bjarmason, Oct 13, 2021
  6. Ævar Arnfjörð BjarmasonOct 13, 2021
  7. ab/parse-options-cleanupÆvar Arnfjörð Bjarmason, Oct 13, 2021
  8. Junio C HamanoOct 13, 2021
  9. js/retire-preserve-merges, was Re: What's cooking in git.git (Oct 2021, #03; Mon, 11)Johannes Schindelin, Oct 14, 2021
  10. Ævar Arnfjörð BjarmasonOct 14, 2021
  11. Junio C HamanoOct 14, 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.