LoginSignup
7
8

More than 5 years have passed since last update.

git のcommit/merge/checkoutなどのタイミングでctagsを実行するフックスクリプト

Last updated at Posted at 2013-01-30

.git/hooks 配下に以下のようなスクリプトを post-commit というファイル名で作成。実行権限を与える。

.git/hooks/post-commit
#!/bin/sh
/usr/local/bin/ctags -f tags -R `pwd`
echo "*** Update tags by git hook script."

同様の内容で、post-merge, post-checkout という名前でファイルを用意する。

参考

7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8