diff options
author | Yann Dirson <ydirson@altern.org> | 2010-10-24 23:03:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-25 00:21:56 -0700 |
commit | c3fced64981e3d2700d83c0a6661ac347df5121e (patch) | |
tree | caf20d196ef6b5565859c75341a551096d0d8f58 | |
parent | 8a90438506d3b7c8ef8bd802b7ed10c1f12da1d0 (diff) | |
download | git-c3fced64981e3d2700d83c0a6661ac347df5121e.tar.gz git-c3fced64981e3d2700d83c0a6661ac347df5121e.tar.xz |
Fix copy-pasted comments related to tree diff handling.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | diff.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |