tj.git-extras/bin/git-ignore
2011-02-22 13:07:41 -03:00

11 lines
176 B
Bash
Executable file

#!/bin/sh
if test $# -eq 0; then
test -f .gitignore && cat .gitignore
else
for pattern in $@; do
echo $pattern >> .gitignore
echo "... added '$pattern'"
done
fi