summaryrefslogtreecommitdiff
path: root/list-objects.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-03-21 17:00:27 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-22 00:36:00 -0700
commit1d848f643cd8ba86044d729d08d6866425c1539e (patch)
treee6c39ee5c80bd6220ee3abcfcda2d98dd276b725 /list-objects.c
parenttree-diff: avoid strncmp() (diff)
downloadtgif-1d848f643cd8ba86044d729d08d6866425c1539e.tar.xz
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>
Diffstat (limited to 'list-objects.c')
0 files changed, 0 insertions, 0 deletions