summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-21 12:34:46 -0700
committerJunio C Hamano <junkio@cox.net>2007-03-22 00:34:39 -0700
commitccc744abbb27d3766175aee971991bc0f1fd4f00 (patch)
treea02363594bfc0356104b695f8f69009a8db7ee0f /gitweb
parent7d2f667b12334cea68087eb7da717efd7b3d80f6 (diff)
downloadgit-ccc744abbb27d3766175aee971991bc0f1fd4f00.tar.gz
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 'gitweb')
0 files changed, 0 insertions, 0 deletions