mirror of
https://github.com/tj/git-extras.git
synced 2026-09-11 16:06:20 -04:00
git-ignore doesnt fail if .gitignore file dont exists yet
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
This commit is contained in:
parent
a0de28fe07
commit
38d8a22589
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test $# -eq 0; then
|
||||
cat .gitignore
|
||||
test -f .gitignore && cat .gitignore
|
||||
else
|
||||
for pattern in $@; do
|
||||
echo $pattern >> .gitignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue