summaryrefslogtreecommitdiff
path: root/csum-file.h
diff options
context:
space:
mode:
authorLibravatar Mazo, Andrey <amazo@checkvideo.com>2019-04-01 18:02:32 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-02 11:25:41 +0900
commita2bee10ad9ed4dc45c1f7da76f01388925b80212 (patch)
tree810beb7f27c96c7fe252f595dbc94db538d046a3 /csum-file.h
parentgit-p4: add failing test for "don't exclude other files with same prefix" (diff)
downloadtgif-a2bee10ad9ed4dc45c1f7da76f01388925b80212.tar.xz
git-p4: don't exclude other files with same prefix
Make sure not to exclude files unintentionally if exclude paths are specified without a trailing /. I.e., don't exclude "//depot/file_dont_exclude" if run with "-//depot/file". Do this by ensuring that paths without a trailing "/" are only matched completely. Also, abort path search on the first match as a micro-optimization. Signed-off-by: Andrey Mazo <amazo@checkvideo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
0 files changed, 0 insertions, 0 deletions