diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-07-18 14:34:33 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-07-18 14:35:54 -0700 |
commit | ae2c912c04cf9902653409d686ca6d5017c3906f (patch) | |
tree | 58403847c08a56733b7e261fbc8363184e3fa1de /commit.c | |
parent | fb7d80edcae482f4fa5d4be0227dc3054734e5f3 (diff) |
parse-options: introduce OPT_IPVERSION()
The command line option parsing for "git clone", "git fetch", and
"git push" have duplicated implementations of parsing "--ipv4" and
"--ipv6" options, by having two OPT_SET_INT() for "ipv4" and "ipv6".
Introduce a new OPT_IPVERSION() macro and use it in these three
commands.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions