libgit2

git_submodule_set_ignore

Version:

Set the ignore rule for the submodule.

This sets the ignore rule in memory for the submodule. This will be used for any following actions (such as git_submodule_status()) while the submodule is in memory. You should call git_submodule_save() if you want to persist the new ignore role.

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

Signature

git_submodule_ignore_t git_submodule_set_ignore(git_submodule *submodule, git_submodule_ignore_t ignore);

Parameters

In
submodule

Returns

old value for ignore

Versions