mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 06:00:28 +00:00
Tests: Add test for git_tag_list to check for 'git tag -l "*bar"'
This commit is contained in:
parent
daa70138fc
commit
8469219e37
@ -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 }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user