From ba9e18d213f7aaf47fa57ccc4d139bc5cfe03d31 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 28 Dec 2020 22:23:52 -0500 Subject: ide: incremental tags and git hooks --- Biz/Bild/ShellHook.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Biz/Bild') diff --git a/Biz/Bild/ShellHook.sh b/Biz/Bild/ShellHook.sh index 7724c28..9e629f3 100644 --- a/Biz/Bild/ShellHook.sh +++ b/Biz/Bild/ShellHook.sh @@ -18,6 +18,12 @@ alias runghc="runghc --ghc-arg=-i$BIZ_ROOT" alias tree="tree -I _" +# link git hooks +rm -f $BIZ_ROOT/.git/hooks/{post-checkout,post-merge,pre-commit} +ln -s $BIZ_ROOT/Biz/Ide/post-checkout $BIZ_ROOT/.git/hooks/post-checkout +ln -s $BIZ_ROOT/Biz/Ide/post-merge $BIZ_ROOT/.git/hooks/post-merge +ln -s $BIZ_ROOT/Biz/Lint.py $BIZ_ROOT/.git/hooks/pre-commit + function bild() { runghc Biz.Bild $@ } -- cgit v1.2.3