]> git.ipfire.org Git - thirdparty/git.git/commit
meson: deduplicate access to SHA1/SHA256 backend options
authorPatrick Steinhardt <ps@pks.im>
Mon, 30 Dec 2024 14:24:05 +0000 (15:24 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Dec 2024 14:50:45 +0000 (06:50 -0800)
commit31eb6d7cf09c3fa668c1839d8c5759ab7cdf280c
tree8bf08ec9c96330634586cbe5310436e60debd539
parent8214e27d275915079ddf7c294c379515e34e8efb
meson: deduplicate access to SHA1/SHA256 backend options

We've got a couple of repeated calls to `get_option()` for the SHA1 and
SHA256 backend options. While not an issue, it makes the code needlessly
verbose.

Fix this by consistently using a local variable.

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