Commit bc5f220
committed
diff: add option to report whether files are binary
When generating diff output, if either side of a filepair is detected as
binary, Git omits the diff content and instead prints a "Binary files
differ" message.
In some cases, it can be useful to know which files were detected as
binary and which were treated as text. Introduce a new
`--report-binary-files` diff option that, when enabled, appends a line
for each file indicating whether Git considered it binary or text.
Signed-off-by: Justin Tobler <[email protected]>1 parent 60f3f52 commit bc5f220
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3534 | 3534 | | |
3535 | 3535 | | |
3536 | 3536 | | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3537 | 3546 | | |
3538 | 3547 | | |
3539 | 3548 | | |
| |||
3675 | 3684 | | |
3676 | 3685 | | |
3677 | 3686 | | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
3678 | 3691 | | |
3679 | 3692 | | |
3680 | 3693 | | |
| |||
3699 | 3712 | | |
3700 | 3713 | | |
3701 | 3714 | | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
3702 | 3719 | | |
3703 | 3720 | | |
3704 | 3721 | | |
| |||
5741 | 5758 | | |
5742 | 5759 | | |
5743 | 5760 | | |
| 5761 | + | |
| 5762 | + | |
5744 | 5763 | | |
5745 | 5764 | | |
5746 | 5765 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
| |||
0 commit comments