Commit 71482d3
diff: allow --patch & cie to override -s/--no-patch
All options that trigger a patch output now override --no-patch.
The case of --binary deserves extra attention: the name may suggest that
it turns a normal patch into a binary patch, but it actually already
enables patch output when normally disabled (e.g. "git log --binary"
displays a patch), hence it makes sense for "git show --no-patch
--binary" to display the binary patch.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent d09cd15 commit 71482d3
2 files changed
+35
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3497 | 3497 | | |
3498 | 3498 | | |
3499 | 3499 | | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
3500 | 3505 | | |
3501 | 3506 | | |
3502 | 3507 | | |
3503 | 3508 | | |
3504 | 3509 | | |
3505 | 3510 | | |
3506 | 3511 | | |
3507 | | - | |
3508 | | - | |
3509 | | - | |
3510 | | - | |
| 3512 | + | |
| 3513 | + | |
| 3514 | + | |
3511 | 3515 | | |
3512 | 3516 | | |
3513 | | - | |
3514 | | - | |
3515 | | - | |
| 3517 | + | |
| 3518 | + | |
| 3519 | + | |
| 3520 | + | |
3516 | 3521 | | |
3517 | 3522 | | |
3518 | 3523 | | |
| |||
3534 | 3539 | | |
3535 | 3540 | | |
3536 | 3541 | | |
3537 | | - | |
3538 | | - | |
3539 | | - | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3540 | 3546 | | |
3541 | 3547 | | |
3542 | 3548 | | |
| |||
3611 | 3617 | | |
3612 | 3618 | | |
3613 | 3619 | | |
3614 | | - | |
| 3620 | + | |
3615 | 3621 | | |
3616 | 3622 | | |
3617 | 3623 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
74 | 92 | | |
0 commit comments