libgit2

git_submodule_set_update

Version:

Set the update rule for the submodule in the configuration

This setting won't affect any existing instances.

Signature

int git_submodule_set_update(git_repository *repo, const char *name, git_submodule_update_t update);

Parameters

In
repo

the repository to affect

const char *
In
name

the name of the submodule to configure

In
update

The new value to use

Returns

int

0 or an error code

Versions