Skip to content

Commit c3fced6

Browse files
ydirsongitster
authored andcommitted
Fix copy-pasted comments related to tree diff handling.
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8a90438 commit c3fced6

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
@@ -3527,7 +3527,7 @@ static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
35273527

35283528
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
35293529
(DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
3530-
return; /* no tree diffs in patch format */
3530+
return; /* no useful stat for tree diffs */
35313531

35323532
run_diffstat(p, o, diffstat);
35333533
}
@@ -3540,7 +3540,7 @@ static void diff_flush_checkdiff(struct diff_filepair *p,
35403540

35413541
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
35423542
(DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
3543-
return; /* no tree diffs in patch format */
3543+
return; /* nothing to check in tree diffs */
35443544

35453545
run_checkdiff(p, o);
35463546
}

0 commit comments

Comments
 (0)