Set index capabilities flags.
If you pass 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
.
A combination of GIT_INDEX_CAPABILITY values
0 on success, -1 on failure