(Which is to say, it feels weird to put both of these in the same API, even though libgit2 does.)