Created
December 11, 2013 19:15
-
-
Save visualmotive/7916585 to your computer and use it in GitHub Desktop.
Using ctags nicely with git. Add the following files to ~/.git_template/hooks and ctags will always be up to date with your latest git merges/commits/rebases. This also puts the `tags` file into your repo's .git directory, so it won't clutter your workspace.
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/sh | |
.git/hooks/ctags >/dev/null 2>&1 & |
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/sh | |
.git/hooks/ctags >/dev/null 2>&1 & |
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/sh | |
.git/hooks/ctags >/dev/null 2>&1 & |
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/sh | |
case "$1" in | |
rebase) exec .git/hooks/post-merge ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment