mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 08:55:07 +03:00
make git ignore .DS_Store by default
This commit is contained in:
parent
8de63129b4
commit
00c70ea2bc
3 changed files with 15 additions and 0 deletions
2
projects/git-scm.org/gitconfig
Normal file
2
projects/git-scm.org/gitconfig
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[core]
|
||||||
|
excludesfile = ./gitignore
|
2
projects/git-scm.org/gitignore
Normal file
2
projects/git-scm.org/gitignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# banish ye, the bane of our existence
|
||||||
|
.DS_Store
|
|
@ -23,6 +23,9 @@ build:
|
||||||
|
|
||||||
cd "{{prefix}}"
|
cd "{{prefix}}"
|
||||||
DEBUG=1 fix-shebangs.ts bin/* libexec/git-core/*
|
DEBUG=1 fix-shebangs.ts bin/* libexec/git-core/*
|
||||||
|
|
||||||
|
mkdir etc
|
||||||
|
cp "$SRCROOT"/props/git* etc
|
||||||
env:
|
env:
|
||||||
V: 1
|
V: 1
|
||||||
BAKE:
|
BAKE:
|
||||||
|
@ -31,7 +34,15 @@ build:
|
||||||
CONF:
|
CONF:
|
||||||
- --prefix={{ prefix }}
|
- --prefix={{ prefix }}
|
||||||
- --with-perl={{ deps.perl.org.prefix }}
|
- --with-perl={{ deps.perl.org.prefix }}
|
||||||
|
- --with-gitconfig=etc/gitconfig
|
||||||
INSTALL_STRIP: -s
|
INSTALL_STRIP: -s
|
||||||
|
|
||||||
test: |
|
test: |
|
||||||
git clone https://github.com/teaxyz/white-paper
|
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"
|
||||||
|
|
Loading…
Reference in a new issue