Wrap `git_index_update_all`

This PR wraps `git_index_update_all` and adds the corresponding test.