git-gohooks/README.md

26 lines
681 B
Markdown
Raw Normal View History

2015-08-01 02:34:19 +02:00
git-hooks
=========
Collection of git hooks. Most of the pre-commit hooks are Go specific.
usage
-----
* to install the hooks use:
2015-08-01 02:36:32 +02:00
2015-08-01 02:34:19 +02:00
go get github.com/mthie/git-gohooks
go get github.com/mthie/git-gohooks/githook-gobuild
go get github.com/mthie/git-gohooks/githook-gofmt
go get github.com/mthie/git-gohooks/githook-gotest
2015-08-01 02:35:13 +02:00
2015-08-01 02:34:19 +02:00
2015-08-01 02:35:13 +02:00
* you have the choice to copy it to your .git/hooks/ folder or to symlink it with
2015-08-01 02:37:23 +02:00
2015-08-01 02:36:32 +02:00
( cd .git/hooks && \
ln -s $GOPATH/bin/git-gohooks pre-commit && \
ln -s $GOPATH/bin/githook-gofmt pre-commit_01_gofmt && \
2015-08-01 03:16:51 +02:00
ln -s $GOPATH/bin/githook-gobuild pre-commit_02_gobuild && \
2015-08-01 02:36:32 +02:00
ln -s $GOPATH/bin/githook-gotest pre-commit_03_gotest )
2015-08-01 02:34:19 +02:00