tree_entry_interesting(): allow it to say "everything is interesting"
commit1d848f643cd8ba86044d729d08d6866425c1539e
authorJunio C Hamano <junkio@cox.net>
Thu, 22 Mar 2007 00:00:27 +0000 (21 17:00 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 22 Mar 2007 07:36:00 +0000 (22 00:36 -0700)
treee6c39ee5c80bd6220ee3abcfcda2d98dd276b725
parentccc744abbb27d3766175aee971991bc0f1fd4f00
tree_entry_interesting(): allow it to say "everything is interesting"

In addition to optimizing pathspecs that would never match,
which was done earlier, this optimizes pathspecs that would
always match (e.g. "arch/" while the traversal is already in
"arch/i386/" hierarchy).

This patch makes the worst case slightly more palatable, while
improving average case.

Signed-off-by: Junio C Hamano <junkio@cox.net>
tree-diff.c