mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
c365dbb44e
commit
b4c476c43a
@@ -4,6 +4,7 @@
|
||||
#include "strbuf.h"
|
||||
|
||||
struct option;
|
||||
struct repository;
|
||||
|
||||
enum diagnose_mode {
|
||||
DIAGNOSE_NONE,
|
||||
@@ -13,6 +14,8 @@ enum diagnose_mode {
|
||||
|
||||
int option_parse_diagnose(const struct option *opt, const char *arg, int unset);
|
||||
|
||||
int create_diagnostics_archive(struct strbuf *zip_path, enum diagnose_mode mode);
|
||||
int create_diagnostics_archive(struct repository *r,
|
||||
struct strbuf *zip_path,
|
||||
enum diagnose_mode mode);
|
||||
|
||||
#endif /* DIAGNOSE_H */
|
||||
|
||||
Reference in New Issue
Block a user