This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # このshを任意の場所に配置して、core.hooksPathに設定すると全体で利用できます。 | |
| # e.g. /usr/local/etc/git-hooks/ にこのスクリプトを配置した場合 | |
| # git config --global core.hooksPath /usr/local/etc/git-hooks/ | |
| out=$1 | |
| cat $out | |
| function message() { | |
| mv $out $out.tmp | |
| cat <<EOS > $out |