Initial support for 'get ignore'
This commit is contained in:
parent
4d6653ecc3
commit
cc8f56ac9e
1 changed files with 11 additions and 1 deletions
12
bin/get
12
bin/get
|
|
@ -185,7 +185,17 @@ done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ignore)
|
ignore)
|
||||||
|
GIT_ROOT=$(git_root)
|
||||||
|
CWD=$(pwd)
|
||||||
|
cd "$GIT_ROOT"
|
||||||
|
if [[ -e ".gitignore" ]] && grep "$2" ".gitignore" >/dev/null
|
||||||
|
then
|
||||||
|
echo "$2 already in .gitignore"
|
||||||
|
else
|
||||||
|
echo "Adding $2 to .gitignore"
|
||||||
|
echo "$2" >> ".gitignore"
|
||||||
|
fi
|
||||||
|
cd "$CWD"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
diff)
|
diff)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue