mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 00:16:27 -04:00
11 lines
195 B
Bash
Executable file
11 lines
195 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if test $# -eq 0; then
|
|
test -f .gitignore && cat .gitignore
|
|
else
|
|
for pattern in "$@"; do
|
|
echo "... adding '$pattern' to .gitignore"
|
|
echo "$pattern" >> .gitignore
|
|
done
|
|
fi
|