]> git.99rst.org Git - git.git/commit
builtin/bugreport.c: create '--diagnose' option
authorVictoria Dye <redacted>
Fri, 12 Aug 2022 20:10:17 +0000 (20:10 +0000)
committerJunio C Hamano <redacted>
Fri, 12 Aug 2022 20:20:02 +0000 (13:20 -0700)
commitaac0e8ffeeed57cae2a047fd442f2125cbfc8e39
treec9fe0fe3d1d1880616578c7829a1b27855863954
parent7ecf193f7d621f618b322498d884ee103a44522f
builtin/bugreport.c: create '--diagnose' option

Create a '--diagnose' option for 'git bugreport' to collect additional
information about the repository and write it to a zipped archive.

The '--diagnose' option behaves effectively as an alias for simultaneously
running 'git bugreport' and 'git diagnose'. In the documentation, users are
explicitly recommended to attach the diagnostics alongside a bug report to
provide additional context to readers, ideally reducing some back-and-forth
between reporters and those debugging the issue.

Note that '--diagnose' may take an optional string arg (either 'stats' or
'all'). If specified without the arg, the behavior corresponds to running
'git diagnose' without '--mode'. As with 'git diagnose', this default is
intended to help reduce unintentional leaking of sensitive information).
Users can also explicitly specify '--diagnose=(stats|all)' to generate the
respective archive created by 'git diagnose --mode=(stats|all)'.

Suggested-by: Ævar Arnfjörð Bjarmason <redacted>
Helped-by: Derrick Stolee <redacted>
Signed-off-by: Victoria Dye <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-bugreport.txt
builtin/bugreport.c
t/t0091-bugreport.sh
git clone https://git.99rst.org/PROJECT