The actual code I wrote is not correct, btw. That needs to be `entry.mode` etc. when setting the values and the `git_index_add()` calls would need `&entry`, too.