Considering libgit2/libgit2#2390, I think it may make more sense to accept a name here. Could you please push down the resolving of the handle into this method?