Fixes #190 (closed)
Get the current file mode from index entry and forward it to apply_patch.
apply_patch