]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: drop global `imap_server_conf` variable
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:39:17 +0000 (08:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:54 +0000 (10:30 -0700)
commitcea1ff7f1fb65daaf1059bdc0e5b65e2a2e3b89b
tree770cff08f8bfa129b0b4b4c12e3e385ae1981219
parentc77756015e66e5fc601cfb6a368c37ef1f94285a
imap-send: drop global `imap_server_conf` variable

In "imap-send.c", we have a global `sturct imap_server_conf` variable
that keeps track of the configuration of the IMAP server. This variable
is being populated mostly via the Git configuration.

Refactor the code to allocate the structure on the stack instead of
having it globally. This change allows us to track its lifetime more
closely.

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