From: Simon Ruderich Date: Mon, 16 Mar 2009 16:45:43 +0000 (+0100) Subject: git: No need to create .gitignore. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=4daf3588f9130eb18d5f4de95f36027c36f1667d;p=config%2Fdotfiles.git git: No need to create .gitignore. Just use gitignore in this directory. --- diff --git a/gitconfig.m4 b/gitconfig.m4 index 51b5946..4fec077 100644 --- a/gitconfig.m4 +++ b/gitconfig.m4 @@ -7,7 +7,7 @@ [core] editor = vim - excludesfile = HOME/.gitignore + excludesfile = GITIGNORE [alias] # Shortcuts for often used commands. diff --git a/setup.sh b/setup.sh index 283a8ee..a530d1f 100755 --- a/setup.sh +++ b/setup.sh @@ -6,11 +6,10 @@ . ../lib.sh # Generate gitconfig. -m4 gitconfig -DHOME=$HOME -DOS=`os` +m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` # Link setup. link gitconfig ~/.gitconfig -link gitignore ~/.gitignore if installed hg; then link hgrc ~/.hgrc link hgignore ~/.hgignore