From e11ef008517996497ba413813c2fa756ac22f122 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sat, 19 Nov 2011 01:51:35 +0100 Subject: [PATCH] Make `vcsh init` create and add $HOME/.gitignore.d/$repo --- vcsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcsh b/vcsh index 82a98a1..bb04b29 100755 --- a/vcsh +++ b/vcsh @@ -77,6 +77,8 @@ init() { git init git config core.worktree "$GIT_WORK_TREE" git config core.excludesfile ".gitignore.d/$REPO_NAME" + touch "$HOME/.gitignore.d/$REPO_NAME" + git add "$HOME/.gitignore.d/$REPO_NAME" verbose "init() end" } -- 2.39.2