]> git.ipfire.org Git - thirdparty/git.git/commit
diagnose: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 17 Dec 2024 06:43:54 +0000 (07:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2024 18:44:31 +0000 (10:44 -0800)
commitb4c476c43a1125300614d2e9ec9dedfa44355515
tree1346c66e0331ee62577ef7776df402fb034125cc
parentc365dbb44ec81fc60e9b7666a4384f8649d80b2a
diagnose: stop using `the_repository`

Stop using `the_repository` in the "diagnose" subsystem by passing in a
repository when generating a diagnostics archive.

Adjust callers accordingly by using `the_repository`. While there may be
some callers that have a repository available in their context, this
trivial conversion allows for easier verification and bubbles up the use
of `the_repository` by one level.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bugreport.c
builtin/diagnose.c
diagnose.c
diagnose.h