What @arrbee said. If the actual enum doesn't pass cleanly to the API, we need to change the signature of `git_index_set_caps`, not cast it.