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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.33.0.995.ga5ea46173a2




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux