libgit2

git_submodule_set_update

Version:

Set the update rule for the submodule.

This sets the update rule in memory for the submodule. You should call git_submodule_save() if you want to persist the new update rule.

Calling this again with GIT_SUBMODULE_UPDATE_DEFAULT or calling git_submodule_reload() will revert the rule to the value that was in the original config.

Signature

git_submodule_update_t git_submodule_set_update(git_submodule *submodule, git_submodule_update_t update);

Parameters

In
submodule

Returns

old value for update

Versions