I think you could set `*ret = GIT_CLONE_OPTIONS_INIT;` and then do all setting of the struct members through `->`.