mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge branch 'ignore'
This commit is contained in:
commit
398e84be9b
2
Makefile
2
Makefile
|
|
@ -2,6 +2,7 @@
|
|||
PREFIX = /usr/local
|
||||
|
||||
BINS = bin/git-count \
|
||||
bin/git-ignore \
|
||||
bin/git-release
|
||||
|
||||
install:
|
||||
|
|
@ -9,6 +10,7 @@ install:
|
|||
|
||||
uninstall:
|
||||
rm -f $(PREFIX)/bin/git-count
|
||||
rm -f $(PREFIX)/bin/git-ignore
|
||||
rm -f $(PREFIX)/bin/git-release
|
||||
|
||||
.PHONY: install uninstall
|
||||
10
bin/git-ignore
Executable file
10
bin/git-ignore
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo "arguments required" && exit 1
|
||||
else
|
||||
for pattern in $@; do
|
||||
echo "... adding '$pattern' to .gitignore"
|
||||
echo $pattern >> .gitignore
|
||||
done
|
||||
fi
|
||||
Loading…
Reference in a new issue