]> git.ipfire.org Git - thirdparty/git.git/commit
help: refactor to not use globals for reading config
authorPatrick Steinhardt <ps@pks.im>
Wed, 20 Nov 2024 13:39:43 +0000 (14:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Nov 2024 23:23:44 +0000 (08:23 +0900)
commit94aa96cd590c7da5103c61795e34de4d3ae2849e
tree0c080aa9f9f6677389f389534e28a6e1b715119d
parent58e7568c619cce872b17987f0d14b3de3703129a
help: refactor to not use globals for reading config

We're reading the "help.autocorrect" and "alias.*" configuration into
global variables, which makes it hard to manage their lifetime
correctly. Refactor the code to use a struct instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c