Code review src/git2r_diff.c

* Fix missing doxygen documentation and update argument checks to use
  git2r_arg_check* functions.