From: Vincent Demeester Date: Sat, 14 Jan 2012 17:48:14 +0000 (+0100) Subject: Add setup hook X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/eac17e45f9d9f2713c39a8a27c0aa0a779ebb07c?ds=sidebyside;hp=-c Add setup hook --- eac17e45f9d9f2713c39a8a27c0aa0a779ebb07c 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() {