From d6e7441ea38036d67086fff31ec25bbecd28c685 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 1 May 2025 10:28:14 +0200 Subject: [PATCH] silent gitignore init --- .config/vcsh/hooks-available/post-init.write-gitignore | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/vcsh/hooks-available/post-init.write-gitignore b/.config/vcsh/hooks-available/post-init.write-gitignore index 4039ca8..1f4fd6d 100755 --- a/.config/vcsh/hooks-available/post-init.write-gitignore +++ b/.config/vcsh/hooks-available/post-init.write-gitignore @@ -8,8 +8,7 @@ cd $GIT_WORK_TREE GIT_IGNORE_FILE=.gitignore.d/$VCSH_REPO_NAME -touch $GIT_IGNORE_FILE +vcsh write-gitignore $VCSH_REPO_NAME 2>/dev/null git add -f $GIT_IGNORE_FILE -vcsh write-gitignore $VCSH_REPO_NAME -git add $GIT_IGNORE_FILE +rm -f ${GIT_IGNORE_FILE}.bak git commit -m'seed gitignore file' -- 2.39.5