"Victoria Dye via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > From: Victoria Dye <vdye@xxxxxxxxxx> > > Add a '--no-report' option to 'git bugreport' to avoid writing the > 'git-bugreport-<suffix>.txt' file. This gives users the option of creating > only the diagnostic archive with '--diagnose' and mirroring the behavior of > the original 'scalar diagnose' as closely as possible. > > If a user specifies '--no-report' *without* also specifying '--diagnose', > the 'git bugreport' operation is a no-op; a warning message is printed and > the command returns with a non-error exit code. I think this makes sense from scalar side, and I have no objection against this "--no-report" feature existing, but I wonder if those who want to send report may want to have a handy way to tell the command to "include" the diag archive in their report (instead of creating separate report and diagnose files, having to attach two files to their message). Perhaps that is unneeded, or perhaps that comes in later patches in the series, I dunno. > +--no-report:: > + Do not write out a 'git-bugreport-<suffix>.txt' file. This option is > + intended for use with `--diagnose` when only the diagnostic archive is > + needed. If `--no-report` is used without `--diagnose`, `git bugreport` > + is a no-op. I wonder if thinking it this way may make the UI simpler to explain. The "git bugreport" is capable of showing report and diagnose with these two orthogonal options, i.e. --report:: writes bugreport file --diagnose:: writes diagnostic archive And for backward compatibility reasons, the command pretends as if you gave it "--report" when you run it without either. That way, "bugreport --diagnose" will just show diagnostic archive without having to pass "--no-report". There is no need for "nothing to do", either.