Skip to content

Commit

Permalink
git-diff-tree: don't use diffcore_pathspec()
Browse files Browse the repository at this point in the history
diff-tree does the culling of uninteresting paths internally, and
fundamentally has to do so for performance reasons. So there's no
point in calling the separate pathname culling logic here,
especially as it seems slightly broken.
  • Loading branch information
Linus Torvalds committed May 27, 2005
1 parent c504aae commit fbe082a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions diff-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ static int call_diff_flush(void)
diff_flush(DIFF_FORMAT_NO_OUTPUT, 0);
return 0;
}
if (nr_paths)
diffcore_pathspec(paths);
if (header) {
if (diff_output_format == DIFF_FORMAT_MACHINE) {
const char *ep, *cp;
Expand Down

0 comments on commit fbe082a

Please sign in to comment.