Update to latest libgit2.
Update rugged for latest libgit2 reflog changes.
Remove unused function.