c# - How to get list of tags with NGit -


i'm using ngit , want list of tags of current working branch. created ngit instance this:

var git = git.open("c:\\temp\\projectx");

now want list of tags in git archive, how? there no command like: var refs =git.taglist().call();

i expect there branchlist()... var refs = git.branchlist().setlistmode(listbranchcommand.listmode.all).call();

any ideas?

thanks!

try this

var tags = git.open("c:\\temp\\projectx").getrepository().gettags(); 

where tags idictionary<string,ref>


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -