]> git.ipfire.org Git - thirdparty/git.git/commit
remote.h: retire CAS_OPT_NAME
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Dec 2023 19:26:25 +0000 (11:26 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Dec 2023 19:27:04 +0000 (11:27 -0800)
commita762af3dfd9450bf1d6153faa620cb42efb7daa8
tree98080fa42e55f3d14fabc3fb4856d657e0e46bb3
parentfb7d80edcae482f4fa5d4be0227dc3054734e5f3
remote.h: retire CAS_OPT_NAME

When the "--force-with-lease" option was introduced in 28f5d176
(remote.c: add command line option parser for "--force-with-lease",
2013-07-08), the design discussion revolved around the concept of
"compare-and-swap", and it can still be seen in the name used for
variables and helper functions.  The end-user facing option name
ended up to be a bit different, so during the development iteration
of the feature, we used this C preprocessor macro to make it easier
to rename it later.

All of that happened more than 10 years ago, and the flexibility
afforded by the CAS_OPT_NAME macro outlived its usefulness.  Inline
the constant string for the option name, like all other option names
in the code.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c
builtin/send-pack.c
remote.h