Fix copy-pasted comments related to tree diff handling.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Yann Dirson committed
Oct 24, 2010 at 23:03 UTC
c3fced64981e3d2700d83c0a6661ac347df5121e
1 file changed
+2
-2
diff.c
+2
-2
@@ -3527,7 +3527,7 @@ static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,
3527
3528
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
3529
(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 */
3531
3532
run_diffstat(p, o, diffstat);
3533
}
@@ -3540,7 +3540,7 @@ static void diff_flush_checkdiff(struct diff_filepair *p,
3540
3541
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
3542
(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 */
3544
3545
run_checkdiff(p, o);
3546
}