mirror of
https://github.com/git/git.git
synced 2025-02-06 10:03:06 +00:00
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>
22 lines
398 B
C
22 lines
398 B
C
#ifndef DIAGNOSE_H
|
|
#define DIAGNOSE_H
|
|
|
|
#include "strbuf.h"
|
|
|
|
struct option;
|
|
struct repository;
|
|
|
|
enum diagnose_mode {
|
|
DIAGNOSE_NONE,
|
|
DIAGNOSE_STATS,
|
|
DIAGNOSE_ALL
|
|
};
|
|
|
|
int option_parse_diagnose(const struct option *opt, const char *arg, int unset);
|
|
|
|
int create_diagnostics_archive(struct repository *r,
|
|
struct strbuf *zip_path,
|
|
enum diagnose_mode mode);
|
|
|
|
#endif /* DIAGNOSE_H */
|