| 1 | #ifndef DIAGNOSE_H |
| 2 | #define DIAGNOSE_H |
| 3 | |
| 4 | #include "strbuf.h" |
| 5 | |
| 6 | struct option; |
| 7 | struct repository; |
| 8 | |
| 9 | enum diagnose_mode { |
| 10 | DIAGNOSE_NONE, |
| 11 | DIAGNOSE_STATS, |
| 12 | DIAGNOSE_ALL |
| 13 | }; |
| 14 | |
| 15 | int option_parse_diagnose(const struct option *opt, const char *arg, int unset); |
| 16 | |
| 17 | int create_diagnostics_archive(struct repository *r, |
| 18 | struct strbuf *zip_path, |
| 19 | enum diagnose_mode mode); |
| 20 | |
| 21 | #endif /* DIAGNOSE_H */ |