summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2015-07-01 11:08:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-07-01 16:30:53 (GMT)
commitae454f6125dd492c78eaf0b8709d4779bc0cbe7a (patch)
tree8b3d06e966da77854e74812852d44d352d47be01 /builtin
parent28fcc0b71a6543fe50576efc1ac8fb4e4555b6a6 (diff)
downloadgit-ae454f6125dd492c78eaf0b8709d4779bc0cbe7a.zip
git-ae454f6125dd492c78eaf0b8709d4779bc0cbe7a.tar.gz
git-ae454f6125dd492c78eaf0b8709d4779bc0cbe7a.tar.bz2
Add tests for wildcard "path vs ref" disambiguation
Commit 28fcc0b (pathspec: avoid the need of "--" when wildcard is used - 2015-05-02) changes how the disambiguation rules work. This patch adds some tests to demonstrate, basically, if wildcard characters are in an argument: - if the argument is valid extended sha-1 syntax, "--" must be used - otherwise the argument is considered a path, even without "--" And wildcard can appear in extended sha-1 syntax, either as part of regex in ":/<regex>" or as the literal path in ":<path>". The latter case is less likely to happen in real world. But if you do ":/" a lot, you may need to type "--" more. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions