typemap: Correct croak message
Added support for patches
Added tests for patch functionality
Updated documentation for patches.
Repository.xs: use typemap instead of GIT_NEW_OBJ()
Changes: update