commit | 1d848f643cd8ba86044d729d08d6866425c1539e | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Wed Mar 21 17:00:27 2007 -0700 |
committer | Junio C Hamano <junkio@cox.net> | Thu Mar 22 00:36:00 2007 -0700 |
tree | e6c39ee5c80bd6220ee3abcfcda2d98dd276b725 | |
parent | ccc744abbb27d3766175aee971991bc0f1fd4f00 [diff] |
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>