Submodule update options structure
Use the GIT_SUBMODULE_UPDATE_OPTIONS_INIT to get the default settings, like this:
git_submodule_update_options opts = GIT_SUBMODULE_UPDATE_OPTIONS_INIT;
These options are passed to the checkout step. To disable checkout, set the checkout_strategy
to GIT_CHECKOUT_NONE
. Generally you will want the use GIT_CHECKOUT_SAFE to update files in the working directory. Use the clone_checkout_strategy
field to set the checkout strategy that will be used in the case where update needs to clone the repository.
Callbacks to use for reporting fetch progress, and for acquiring credentials in the event they are needed.
The checkout strategy to use when the sub repository needs to be cloned. Use GIT_CHECKOUT_SAFE_CREATE to create all files in the working directory for the newly cloned repository.
The identity used when updating the reflog. NULL means to use the default signature using the config.