Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions generate/input/descriptor.json
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,19 @@
},
"isAsync": true
},
"git_tag_list_match": {
"args": {
"tag_names": {
"isReturn": true,
"shouldAlloc": true,
"cppClassName": "Array",
"jsClassName": "Array",
"size": "count",
"key": "strings"
}
},
"isAsync": true
},
"git_tag_tagger": {
"return": {
"ownedByThis": true
Expand Down
8 changes: 8 additions & 0 deletions test/tests/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ describe("Tag", function() {

var reposPath = local("../repos/workdir");
var tagName = "annotated-tag";
var tagPattern = "annotated*";
var tagFullName = "refs/tags/" + tagName;
var tagOid = "dc800017566123ff3c746b37284a24a66546667e";
var commitPointedTo = "32789a79e71fbc9e04d3eff7425e1771eb595150";
Expand Down Expand Up @@ -80,6 +81,13 @@ describe("Tag", function() {
});
});

it("can list tags of a pattern in a repo", function() {
return Tag.listMatch(tagPattern, this.repository)
.then(function(tagNames) {
assert.equal(tagNames.length, 1);
});
});

it("can create a new annotated tag in a repo and delete it", function() {
var oid = Oid.fromString(commitPointedTo);
var name = "created-annotated-tag";
Expand Down