Show More
@@ -0,0 +1,9 b'' | |||||
|
1 | #!/usr/bin/env bash | |||
|
2 | ||||
|
3 | DOTGIT=`git rev-parse --git-dir` | |||
|
4 | TOPLEVEL=`git rev-parse --show-toplevel` | |||
|
5 | TO=${DOTGIT}/hooks | |||
|
6 | FROM=${TOPLEVEL}/git-hooks | |||
|
7 | ||||
|
8 | ln -s ${FROM}/post-checkout ${TO}/post-checkout | |||
|
9 | ln -s ${FROM}/post-merge ${TO}/post-merge |
@@ -1,14 +1,9 b'' | |||||
1 | git hooks for IPython |
|
1 | git hooks for IPython | |
2 |
|
2 | |||
3 | add these to your `.git/hooks` |
|
3 | add these to your `.git/hooks` | |
4 |
|
4 | |||
5 | For now, we just have `post-checkout` and `post-merge`, |
|
5 | For now, we just have `post-checkout` and `post-merge`, | |
6 | both of which just update submodules, |
|
6 | both of which just update submodules, | |
7 | so make sure that you have a fully synced repo whenever you checkout or pull. |
|
7 | so make sure that you have a fully synced repo whenever you checkout or pull. | |
8 |
|
8 | |||
9 | To use these hooks, you can symlink or copy them to your `.git/hooks` directory. |
|
9 | To use these hooks, run `./install-hooks.sh`. | |
10 | In `.git/hooks`, do: |
|
|||
11 |
|
||||
12 | ln -s ../../git-hooks/post-checkout post-checkout |
|
|||
13 | ln -s ../../git-hooks/post-merge post-merge |
|
|||
14 |
|
General Comments 0
You need to be logged in to leave comments.
Login now