diff options
Diffstat (limited to 'Biz')
-rwxr-xr-x | Biz/Ide/hooks/post-checkout | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Biz/Ide/hooks/post-checkout b/Biz/Ide/hooks/post-checkout index 9328c35..3eac0b9 100755 --- a/Biz/Ide/hooks/post-checkout +++ b/Biz/Ide/hooks/post-checkout @@ -1,14 +1,14 @@ #!/usr/bin/env bash set -e -init_tags=${BIZ_ROOT:?}/Biz/Ide/init_tags.sh +mktags=${BIZ_ROOT:?}/Biz/Ide/mktags old=$1 new=$2 # filter out only the changed haskell files changed=($(git diff --diff-filter=d --name-only $old $new -- '*.hs')) -if [[ ! -r tags ]] +if [[ ! -r tags ]] || [[ ! -r TAGS ]] then - $init_tags + $mktags "$BIZ_ROOT"/**/* elif [[ ${#changed[@]} -gt 0 ]] then - $init_tags $changed + $mktags $changed fi |