Skip to content

Commit d780696

Browse files
committed
Merge branch 'maint'
* maint: Fix copy-pasted comments related to tree diff handling.
2 parents d4c4369 + c3fced6 commit d780696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

diff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3532,7 +3532,7 @@ static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
35323532

35333533
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
35343534
(DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
3535-
return; /* no tree diffs in patch format */
3535+
return; /* no useful stat for tree diffs */
35363536

35373537
run_diffstat(p, o, diffstat);
35383538
}
@@ -3545,7 +3545,7 @@ static void diff_flush_checkdiff(struct diff_filepair *p,
35453545

35463546
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
35473547
(DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
3548-
return; /* no tree diffs in patch format */
3548+
return; /* nothing to check in tree diffs */
35493549

35503550
run_checkdiff(p, o);
35513551
}

0 commit comments

Comments
 (0)