Commit 8469219e by Sascha Cunz

Tests: Add test for git_tag_list to check for 'git tag -l "*bar"'

parent daa70138
...@@ -97,6 +97,11 @@ static const struct pattern_match_t matches[] = { ...@@ -97,6 +97,11 @@ static const struct pattern_match_t matches[] = {
// glob in the middle // glob in the middle
{ "foo/*/bar", 1, { "foo/foo/bar" } }, { "foo/*/bar", 1, { "foo/foo/bar" } },
// The matching of '*' is based on plain string matching analog to the regular expression ".*"
// => a '/' in the tag name has no special meaning.
// Compare to `git tag -l "*bar"`
{ "*bar", 2, { "foo/bar", "foo/foo/bar" } },
// End of list // End of list
{ NULL } { NULL }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment