:-1: - you should see if `LibGit2Sharp` has a way to do this

cc @nulltoken