Update git ignore script
The script was trying to be too smart and now no longer looks for actual files but instead just adds everything to the gitignore file directly. Use shell globbing for automatic file listing instead.
This commit is contained in:
parent
72451ccc12
commit
c5e7a97424
1 changed files with 3 additions and 1 deletions
|
@ -4,5 +4,7 @@ if [ -z "$@" ]
|
|||
then
|
||||
$(git config --get core.editor) $(git rev-parse --show-toplevel)/.git/info/exclude
|
||||
else
|
||||
ls -d "$@" >> "$(git rev-parse --show-toplevel)/.git/info/exclude"
|
||||
for file in "$@"
|
||||
do echo "$file" >> "$(git rev-parse --show-toplevel)/.git/info/exclude"
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue