libgit2

git_index_set_caps

Version:

Set index capabilities flags.

If you pass GIT_INDEXCAP_FROM_OWNER for the caps, then the capabilities will be read from the config of the owner object, looking at core.ignorecase, core.filemode, core.symlinks.

Signature

int git_index_set_caps(git_index *index, unsigned int caps);

Parameters

In
index

An existing index object

unsigned int
In
caps

A combination of GIT_INDEXCAP values

Returns

int

0 on success, -1 on failure

Versions