mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
7ecf193f7d
Create '--mode=<mode>' option in 'git diagnose' to allow users to optionally select non-default diagnostic information to include in the output archive. Additionally, document the currently-available modes, emphasizing the importance of not sharing a '--mode=all' archive publicly due to the presence of sensitive information. Note that the option parsing callback - 'option_parse_diagnose()' - is added to 'diagnose.c' rather than 'builtin/diagnose.c' so that it may be reused in future callers configuring a diagnostics archive. Helped-by: Derrick Stolee <derrickstolee@github.com> Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 lines
348 B
C
17 lines
348 B
C
#ifndef DIAGNOSE_H
|
|
#define DIAGNOSE_H
|
|
|
|
#include "strbuf.h"
|
|
#include "parse-options.h"
|
|
|
|
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 strbuf *zip_path, enum diagnose_mode mode);
|
|
|
|
#endif /* DIAGNOSE_H */
|