When diff.renames is turned on, the diff-filter will not return renamed files (or copied ones with diff.renames=copy) and potential non-ASCII characters would not be caught by this hook. Use the plumbing command diff-index instead of the porcelain one to not be affected by diff.rename. Signed-off-by: Julian Prein <druckdev@protonmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| branches-- | ||
| hooks--applypatch-msg.sample | ||
| hooks--commit-msg.sample | ||
| hooks--fsmonitor-watchman.sample | ||
| hooks--post-update.sample | ||
| hooks--pre-applypatch.sample | ||
| hooks--pre-commit.sample | ||
| hooks--pre-merge-commit.sample | ||
| hooks--pre-push.sample | ||
| hooks--pre-rebase.sample | ||
| hooks--pre-receive.sample | ||
| hooks--prepare-commit-msg.sample | ||
| hooks--push-to-checkout.sample | ||
| hooks--update.sample | ||
| info--exclude | ||
| this--description | ||