I think you can also pretty easily extend this to emulate `git add --update` by calling `git_index_update_all()` instead of `git_index_add_all()` (at least, I think that's the case). You don't have to do this to get the PR merged - just having an `add` example will be nice.