Open
Description
See the discussion in my unworkable pull-request for more details on the motivation for this request.
Overcommit should allow pre-commit hooks to modify, add, or remove files in the working dir prior to a commit. Currently this is not possible and any changes made within the hook code will be silently wiped.
Native git hooks of course can do this so this is in some way a reduction in capability from native hooks.
For example, if a pre-commit hook wanted to automatically update a file with a version number or timestamp in it, this would not be possible since the modification to the file, even if added to the git index during the hook execution, would be removed with a git reset --hard
after the pre-commit hooks finish running.