Code review src/git2r_index.c

* git2r_index_add: Fix missing doxygen documentation

* git2r_index_add_all: Update argument checks to be consistent