diff options
| author | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2024-04-28 00:47:27 +0200 |
|---|---|---|
| committer | Gaspard Coulet <gaspard.coulet@mines-ales.org> | 2024-04-28 00:47:27 +0200 |
| commit | 85838d876ba48da1ea256e54e77a69c11062579b (patch) | |
| tree | 0fb24e442283efa5d37c700969985163e65f16ac /old_wiki_git/hooks/pre-applypatch.sample | |
| parent | 9fe033ea88c2f705ec18c232873d056e0c229d72 (diff) | |
Diffstat (limited to 'old_wiki_git/hooks/pre-applypatch.sample')
| -rw-r--r-- | old_wiki_git/hooks/pre-applypatch.sample | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/old_wiki_git/hooks/pre-applypatch.sample b/old_wiki_git/hooks/pre-applypatch.sample new file mode 100644 index 0000000..4142082 --- /dev/null +++ b/old_wiki_git/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed +# by applypatch from an e-mail message. +# +# The hook should exit with non-zero status after issuing an +# appropriate message if it wants to stop the commit. +# +# To enable this hook, rename this file to "pre-applypatch". + +. git-sh-setup +precommit="$(git rev-parse --git-path hooks/pre-commit)" +test -x "$precommit" && exec "$precommit" ${1+"$@"} +: |
