]> git.madduck.net Git - etc/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

silent gitignore init master
authormartin f. krafft <madduck@madduck.net>
Thu, 1 May 2025 08:28:14 +0000 (10:28 +0200)
committermartin f. krafft <madduck@madduck.net>
Thu, 1 May 2025 08:28:14 +0000 (10:28 +0200)
.config/vcsh/hooks-available/post-init.write-gitignore

index 4039ca8738cd618b8a1fe825b74810f8f205c09e..1f4fd6d7e9176252d2c6e2190c63b351651f01eb 100755 (executable)
@@ -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'