From: Yann Dirson Date: Sun, 24 Oct 2010 21:03:10 +0000 (+0200) Subject: Fix copy-pasted comments related to tree diff handling. X-Git-Tag: v1.7.3.3~45 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c3fced64981e3d2700d83c0a6661ac347df5121e;p=git.git Fix copy-pasted comments related to tree diff handling. Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 0e2e872e0..340d878f0 100644 --- a/diff.c +++ b/diff.c @@ -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); }