Merge pull request #12 from teaxyz/git-dstore

make git ignore .DS_Store by default
This commit is contained in:
Max Howell 2022-11-01 08:07:53 -04:00 committed by GitHub
commit f87367f58a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[core]
excludesfile = %(prefix)/etc/gitignore

View file

@ -0,0 +1,2 @@
# banish ye, the bane of our existence
.DS_Store

View file

@ -23,6 +23,9 @@ build:
cd "{{prefix}}"
DEBUG=1 fix-shebangs.ts bin/* libexec/git-core/*
mkdir etc
cp "$SRCROOT"/props/git* etc
env:
V: 1
BAKE:
@ -31,7 +34,15 @@ build:
CONF:
- --prefix={{ prefix }}
- --with-perl={{ deps.perl.org.prefix }}
- --with-gitconfig=etc/gitconfig
INSTALL_STRIP: -s
test: |
git clone https://github.com/teaxyz/white-paper
mkdir foo
cd foo
touch .DS_Store testfile
git init
git add .
test "$(git diff --name-only --cached)" = "testfile"