Update precommit so it only adds a file pre-edit if actually edited