Fix copy-pasted comments related to tree diff handling.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Yann Dirson 2010-10-24 23:03:10 +02:00 committed by Junio C Hamano
parent 8a90438506
commit c3fced6498
1 changed files with 2 additions and 2 deletions

4
diff.c
View File

@ -3527,7 +3527,7 @@ static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o,

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

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

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

run_checkdiff(p, o);
}