Is it possible for the pre-commit hook to work just upon the committed code instead of the entire file?