What's the fastest way to find Tags pointing to Commits?
问题 With libgit2sharp I would like to do the following: foreach( Commit commit in repo.Commits ) { // How to implement assignedTags? foreach( Tag tag in commit.assignedTags ) {} } I want to get all tags assigned to the current commit. Whats the best way to do that? Iterate through all Tags and see if tag.Target.Sha == commit.Sha ? Thats not very performant. Is there another way? 回答1: So I want to get all tags assigned to the current commit. Whats the best way to do that? Iterate through all Tags