libgit2/git2go — pull request #11 by carlosmn (2013-03-08 23:05:19+00:00)
Title: Object polymorphism

This is what I was thinking of, which seems the most straightforward way, and should make RevParse-type functions possible.