mirror of
https://github.com/tj/git-extras.git
synced 2026-09-13 08:56:19 -04:00
show ignored files if no arguments are provided
This commit is contained in:
parent
1b5d9890f9
commit
81ede0a4ba
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo "arguments required" && exit 1
|
||||
cat .gitignore
|
||||
else
|
||||
for pattern in $@; do
|
||||
echo $pattern >> .gitignore
|
||||
echo "... added '$pattern'"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue