libgit2

git_submodule_set_ignore

Version:

Set the ignore rule for the submodule in the configuration

This does not affect any currently-loaded instances.

Signature

int git_submodule_set_ignore(git_repository *repo, const char *name, git_submodule_ignore_t ignore);

Parameters

In
repo

the repository to affect

const char *
In
name

the name of the submdule

In
ignore

The new value for the ignore rule

Returns

int

0 or an error code

Versions