From: Richard Hartmann Date: Sat, 14 Jan 2012 17:50:56 +0000 (-0800) Subject: Merge pull request #20 from vdemeester/hook-support X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/f3c7d74d246eed78a690375dcaa4b3a99b60fd99?hp=a4de1a34059bcccba7b97c87865bd3bc3d798667 Merge pull request #20 from vdemeester/hook-support Add hooks for setup() --- diff --git a/vcsh b/vcsh index 29b5eb9..4732e46 100755 --- a/vcsh +++ b/vcsh @@ -167,11 +167,13 @@ run() { } setup() { + hook pre-setup use git config core.worktree "$GIT_WORK_TREE" git config core.excludesfile ".gitignore.d/$VCSH_REPO_NAME" git config vcsh.vcsh 'true' [ -e "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME" ] && git add -f "$VCSH_BASE/.gitignore.d/$VCSH_REPO_NAME" + hook post-setup } use() {