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
Post a Comment