]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
git: No need to create .gitignore.
authorSimon Ruderich <simon@ruderich.org>
Mon, 16 Mar 2009 16:45:43 +0000 (17:45 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Mar 2009 16:48:15 +0000 (17:48 +0100)
Just use gitignore in this directory.

gitconfig.m4
setup.sh

index 51b5946ec36d8d8316aba4735f55776dc025c04b..4fec07701d98463390b1bc99c45ba34a144405e1 100644 (file)
@@ -7,7 +7,7 @@
 
 [core]
        editor = vim
-       excludesfile = HOME/.gitignore
+       excludesfile = GITIGNORE
 
 [alias]
        # Shortcuts for often used commands.
index 283a8ee531213f52d0e4415266593a98dea12fd8..a530d1fe260f00595f658987f61fdad76e7c7000 100755 (executable)
--- 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