]> git.ipfire.org Git - thirdparty/git.git/commit
submodule--helper: move "sb" in clone_submodule() to its own scope
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 31 Aug 2022 23:17:55 +0000 (01:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Sep 2022 16:16:23 +0000 (09:16 -0700)
commit9bdf5277d5989d128469847b7b88ff20077e6d43
tree0fac4301c2ee67ded0141ad216668cd4ffa5a1a9
parent21496b4c60b2327417c63fc9762096037a185be3
submodule--helper: move "sb" in clone_submodule() to its own scope

Refactor the only remaining use of a "struct strbuf sb" in
clone_submodule() to live in its own scope. This makes the code
clearer by limiting its lifetime.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c