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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -