]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/diagnose.c: add '--mode' option
authorVictoria Dye <vdye@github.com>
Fri, 12 Aug 2022 20:10:16 +0000 (20:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Aug 2022 20:20:02 +0000 (13:20 -0700)
commit7ecf193f7d621f618b322498d884ee103a44522f
tree0f32a7af200f886cadbceab0fc86be37f2789f70
parent6783fd3cef0d6625e8a6d9d42d76042447078401
builtin/diagnose.c: add '--mode' option

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>
Documentation/git-diagnose.txt
builtin/diagnose.c
diagnose.c
diagnose.h
t/t0092-diagnose.sh