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
.
A combination of GIT_INDEXCAP values
0 on success, -1 on failure