summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorLibravatar David Turner <dturner@twopensource.com>2015-08-31 22:13:10 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-01 10:37:38 -0700
commit4e09cf2acf00c63848c365479c61d80af62eceba (patch)
tree814365371ed1ed3a1d019e31b5d4db7e77973ba5 /tree-walk.c
parentrefs: clean up common_list (diff)
downloadtgif-4e09cf2acf00c63848c365479c61d80af62eceba.tar.xz
path: optimize common dir checking
Instead of a linear search over common_list to check whether a path is common, use a trie. The trie search operates on path prefixes, and handles excludes. Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions