Skip to content

Commit

Permalink
Fix copy-pasted comments related to tree diff handling.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Yann Dirson authored and Junio C Hamano committed Oct 25, 2010
1 parent 8a90438 commit c3fced6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit c3fced6

Please sign in to comment.