git_index_set_caps

Set index capabilities flags.

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

extern (C) nothrow @nogc public
int
git_index_set_caps

Parameters

index libgit2.types.git_index*

An existing index object

caps int

A combination of GIT_INDEX_CAPABILITY values

Return Value

Type: int

0 on success, -1 on failure

Meta