We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c7698a commit d4147f5Copy full SHA for d4147f5
diff.c
@@ -3714,9 +3714,7 @@ static void builtin_diff(const char *name_a,
3714
( (!textconv_one && diff_filespec_is_binary(o->repo, one)) ||
3715
(!textconv_two && diff_filespec_is_binary(o->repo, two)) )) {
3716
struct strbuf sb = STRBUF_INIT;
3717
- if (!one->data && !two->data &&
3718
- S_ISREG(one->mode) && S_ISREG(two->mode) &&
3719
- !o->flags.binary) {
+ if (!one->data && !two->data && !o->flags.binary) {
3720
if (oideq(&one->oid, &two->oid)) {
3721
if (must_show_header)
3722
emit_diff_symbol(o, DIFF_SYMBOL_HEADER,
0 commit comments