mbox series

[0/2] parse-options.c: remove OPT_ARGUMENT

Message ID cover-0.2-00000000000-20210911T182009Z-avarab@gmail.com (mailing list archive)
Headers show
Series parse-options.c: remove OPT_ARGUMENT | expand

Message

Ævar Arnfjörð Bjarmason Sept. 11, 2021, 6:21 p.m. UTC
We've only ever used parse-option.c's OPT_ARGUMENT() in one place, as
it turns out we can use an OPT_BOOL there instead. and get a net
reduction in code & complexity.

Ævar Arnfjörð Bjarmason (2):
  difftool: use "struct strvec" API in run_{dir,file}_diff()
  parse-options API: remove OPTION_ARGUMENT feature

 Documentation/technical/api-parse-options.txt |  5 --
 builtin/difftool.c                            | 50 +++++++++++--------
 parse-options.c                               | 13 -----
 parse-options.h                               |  3 --
 t/helper/test-parse-options.c                 |  1 -
 t/t0040-parse-options.sh                      |  5 --
 6 files changed, 28 insertions(+), 49 deletions(-)