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/applypatch-msg.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 / applypatch-msg.sample` 15 lines ยท 478 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # An example hook script to check the commit log message taken by 4 # 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. The hook is 8 # allowed to edit the commit message file. 9 # 10 # To enable this hook, rename this file to "applypatch-msg". 11 12 . git-sh-setup 13 commitmsg="$(git rev-parse --git-path hooks/commit-msg)" 14 test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} 15 :