From 4226cbd8020253b010fb44d395db12efe68e1272 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 21 Sep 2023 22:30:17 -0400 Subject: Rename BIZ_ROOT to CODEROOT BIZ_ROOT was too specific. CODEROOT allows for other (non-biz) projects to live in the root of the repo. I didn't want to call it GIT_ROOT because maybe someday I won't want to use git. But I'll never not use code. --- Biz/Ide/hooks/post-checkout | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Biz/Ide/hooks/post-checkout') diff --git a/Biz/Ide/hooks/post-checkout b/Biz/Ide/hooks/post-checkout index ef0cfa1..73488b0 100755 --- a/Biz/Ide/hooks/post-checkout +++ b/Biz/Ide/hooks/post-checkout @@ -1,13 +1,13 @@ #!/usr/bin/env bash set -e -mktags=${BIZ_ROOT:?}/Biz/Ide/mktags +mktags=${CODEROOT:?}/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 ]] || [[ ! -r TAGS ]] then - $mktags "$BIZ_ROOT"/**/* + $mktags "$CODEROOT"/**/* elif [[ ${#changed[@]} -gt 0 ]] then $mktags $changed -- cgit v1.2.3