mirror of
https://github.com/git/git.git
synced 2026-03-13 02:13:24 +01:00
Merge branch 'master' into next
* master: Fix copy-pasted comments related to tree diff handling.
This commit is contained in:
4
diff.c
4
diff.c
@@ -3551,7 +3551,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);
|
||||
}
|
||||
@@ -3564,7 +3564,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user