Added git error code to the error object.
Added git filemode constants.