pre-commit.sample (pacpl-6.1.2.tar.bz2) | : | pre-commit.sample (pacpl-6.1.3.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
# exit with non-zero status after issuing an appropriate message if | # exit with non-zero status after issuing an appropriate message if | |||
# it wants to stop the commit. | # it wants to stop the commit. | |||
# | # | |||
# To enable this hook, rename this file to "pre-commit". | # To enable this hook, rename this file to "pre-commit". | |||
if git rev-parse --verify HEAD >/dev/null 2>&1 | if git rev-parse --verify HEAD >/dev/null 2>&1 | |||
then | then | |||
against=HEAD | against=HEAD | |||
else | else | |||
# Initial commit: diff against an empty tree object | # Initial commit: diff against an empty tree object | |||
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | against=$(git hash-object -t tree /dev/null) | |||
fi | fi | |||
# If you want to allow non-ASCII filenames set this variable to true. | # If you want to allow non-ASCII filenames set this variable to true. | |||
allownonascii=$(git config --bool hooks.allownonascii) | allownonascii=$(git config --bool hooks.allownonascii) | |||
# Redirect output to stderr. | # Redirect output to stderr. | |||
exec 1>&2 | exec 1>&2 | |||
# Cross platform projects tend to avoid non-ASCII filenames; prevent | # Cross platform projects tend to avoid non-ASCII filenames; prevent | |||
# them from being added to the repository. We exploit the fact that the | # them from being added to the repository. We exploit the fact that the | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |