#!/bin/sh # only run during an actual init (not when init is called as part of e.g. # clone). [ $VCSH_COMMAND = init ] || exit 0 cd $GIT_WORK_TREE GIT_IGNORE_FILE=.gitignore.d/$VCSH_REPO_NAME touch $GIT_IGNORE_FILE git add -f $GIT_IGNORE_FILE vcsh write-gitignore $VCSH_REPO_NAME git add $GIT_IGNORE_FILE git commit -m'seed gitignore file'