Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/templates/hooks/pre-applypatch.sample # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / templates / hooks / pre-applypatch.sample` 14 lines ยท 424 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # An example hook script to verify what is about to be committed 4 # by applypatch from an e-mail message. 5 # 6 # The hook should exit with non-zero status after issuing an 7 # appropriate message if it wants to stop the commit. 8 # 9 # To enable this hook, rename this file to "pre-applypatch". 10 11 . git-sh-setup 12 precommit="$(git rev-parse --git-path hooks/pre-commit)" 13 test -x "$precommit" && exec "$precommit" ${1+"$@"} 14 :