File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 27852785 },
27862786 "isAsync" : true
27872787 },
2788+ "git_tag_list_match" : {
2789+ "args" : {
2790+ "tag_names" : {
2791+ "isReturn" : true ,
2792+ "shouldAlloc" : true ,
2793+ "cppClassName" : " Array" ,
2794+ "jsClassName" : " Array" ,
2795+ "size" : " count" ,
2796+ "key" : " strings"
2797+ }
2798+ },
2799+ "isAsync" : true
2800+ },
27882801 "git_tag_tagger" : {
27892802 "return" : {
27902803 "ownedByThis" : true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ describe("Tag", function() {
1313
1414 var reposPath = local ( "../repos/workdir" ) ;
1515 var tagName = "annotated-tag" ;
16+ var tagPattern = "annotated*" ;
1617 var tagFullName = "refs/tags/" + tagName ;
1718 var tagOid = "dc800017566123ff3c746b37284a24a66546667e" ;
1819 var commitPointedTo = "32789a79e71fbc9e04d3eff7425e1771eb595150" ;
@@ -80,6 +81,13 @@ describe("Tag", function() {
8081 } ) ;
8182 } ) ;
8283
84+ it ( "can list tags of a pattern in a repo" , function ( ) {
85+ return Tag . listMatch ( tagPattern , this . repository )
86+ . then ( function ( tagNames ) {
87+ assert . equal ( tagNames . length , 1 ) ;
88+ } ) ;
89+ } ) ;
90+
8391 it ( "can create a new annotated tag in a repo and delete it" , function ( ) {
8492 var oid = Oid . fromString ( commitPointedTo ) ;
8593 var name = "created-annotated-tag" ;
You can’t perform that action at this time.
0 commit comments