]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: rename `OPT_MAGNITUDE()` to `OPT_UNSIGNED()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Apr 2025 10:49:39 +0000 (12:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Apr 2025 15:15:15 +0000 (08:15 -0700)
commit785c17df7817df8512d2cb92cfc079ef0b4de27c
treef1c9284add0b466afc2e2847a9977c15862a4808
parent8ff1a34bdfef0a0689130508388325af1db38237
parse-options: rename `OPT_MAGNITUDE()` to `OPT_UNSIGNED()`

With the preceding commit, `OPT_INTEGER()` has learned to support unit
factors. Consequently, the major differencen between `OPT_INTEGER()` and
`OPT_MAGNITUDE()` isn't the support of unit factors anymore, as both of
them do support them now. Instead, the difference is that one handles
signed and the other handles unsigned integers.

Adapt the name of `OPT_MAGNITUDE()` accordingly by renaming it to
`OPT_UNSIGNED()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-parse-options.adoc
builtin/gc.c
builtin/multi-pack-index.c
builtin/pack-objects.c
builtin/repack.c
parse-options.c
parse-options.h
t/helper/test-parse-options.c
t/t0040-parse-options.sh