diff options
author | Julian Prein <druckdev@protonmail.com> | 2023-11-30 16:13:56 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-03 11:55:40 +0900 |
commit | d9fd71fa2a82da40a9b58c4ecbc49aed06cb8953 (patch) | |
tree | d8a547c7a5a497dfbc8793eaecc34c8ac7a3e2dd /builtin/commit-graph.c | |
parent | ec583449067bab5b800ecc63926f35c9dae96fa1 (diff) |
hooks--pre-commit: detect non-ASCII when renaming
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>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions