Merge branch 'ab/parse-options-cleanup'
commit65ca3245f99e3595ac483e4af5b2ff34b7985635
authorJunio C Hamano <gitster@pobox.com>
Mon, 25 Oct 2021 23:06:59 +0000 (25 16:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Oct 2021 23:06:59 +0000 (25 16:06 -0700)
tree7847c20152b9212a6b9e53db5fc6ba6a3966f92c
parentf3f157ff2774527a84bad7df1a95a63b7a2f4a4b
parentd342834529495508fa1f23e223d4917cbdcfb54d
Merge branch 'ab/parse-options-cleanup'

Random changes to parse-options implementation.

* ab/parse-options-cleanup:
  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
builtin/blame.c
builtin/commit-graph.c
parse-options.c
parse-options.h