Commit 672196a
scalar-diagnose: use 'git diagnose --mode=all'
Replace implementation of 'scalar diagnose' with an internal invocation of
'git diagnose --mode=all'. This simplifies the implementation of
'cmd_diagnose' by making it a direct alias of 'git diagnose' and removes
some code in 'scalar.c' that is duplicated in 'builtin/diagnose.c'. The
simplicity of the alias also sets up a clean deprecation path for 'scalar
diagnose' (in favor of 'git diagnose'), if that is desired in the future.
This introduces one minor change to the output of 'scalar diagnose', which
is that the prefix of the created zip archive is changed from 'scalar_' to
'git-diagnostics-'.
Helped-by: Ævar Arnfjörð Bjarmason <[email protected]>
Signed-off-by: Victoria Dye <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent aac0e8f commit 672196a
1 file changed
+6
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
510 | 509 | | |
511 | 510 | | |
512 | 511 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 512 | + | |
516 | 513 | | |
517 | 514 | | |
518 | 515 | | |
519 | 516 | | |
520 | 517 | | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
| 518 | + | |
| 519 | + | |
536 | 520 | | |
537 | | - | |
| 521 | + | |
| 522 | + | |
538 | 523 | | |
539 | | - | |
540 | | - | |
| 524 | + | |
541 | 525 | | |
542 | 526 | | |
543 | 527 | | |
| |||
0 commit comments