From: Richard Hartmann Date: Sat, 19 Nov 2011 00:51:35 +0000 (+0100) Subject: Make `vcsh init` create and add $HOME/.gitignore.d/$repo X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/e11ef008517996497ba413813c2fa756ac22f122?ds=inline;hp=--cc Make `vcsh init` create and add $HOME/.gitignore.d/$repo --- e11ef008517996497ba413813c2fa756ac22f122 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" }