summaryrefslogtreecommitdiff
path: root/git-ls-remote.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-03-21 12:34:46 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-22 00:34:39 -0700
commitccc744abbb27d3766175aee971991bc0f1fd4f00 (patch)
treea02363594bfc0356104b695f8f69009a8db7ee0f /git-ls-remote.sh
parentTeach tree_entry_interesting() that the tree entries are sorted. (diff)
downloadtgif-ccc744abbb27d3766175aee971991bc0f1fd4f00.tar.xz
tree-diff: avoid strncmp()
If we already know that some of the pathspecs can match later entries in the tree we are looking at, we do not have to do more expensive strncmp() upfront before comparing the length of the match pattern and the path, as a path longer than the match pattern will not match it, and a path shorter than the match pattern will match only if the path is a directory-component wise prefix of the match pattern. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-ls-remote.sh')
0 files changed, 0 insertions, 0 deletions