diff options
| author | Sascha Cunz <Sascha@BabbelBox.org> | 2012-09-22 23:11:26 +0200 |
|---|---|---|
| committer | Sascha Cunz <Sascha@BabbelBox.org> | 2012-09-23 01:02:07 +0200 |
| commit | 8469219e3792fd19d8f6ca5ca6f978928fcb8dc7 (patch) | |
| tree | b1d0b319b3a5fabd11f8c9d8d2105f6b3dc689d7 /tests-clar | |
| parent | daa70138fcb7518443bb5053cb10c0ba07fb4494 (diff) | |
| download | libgit2-8469219e3792fd19d8f6ca5ca6f978928fcb8dc7.tar.gz | |
Tests: Add test for git_tag_list to check for 'git tag -l "*bar"'
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/object/tag/list.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests-clar/object/tag/list.c b/tests-clar/object/tag/list.c index a3e0b8803..6d5a24347 100644 --- a/tests-clar/object/tag/list.c +++ b/tests-clar/object/tag/list.c @@ -97,6 +97,11 @@ static const struct pattern_match_t matches[] = { // glob in the middle { "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 { NULL } }; |
