I don't understand why are you wrapping `git_cred` in a struct here... Couldn't you just typedef it if you need a new type?