darkrc/bin/git-ignore
DarkWiiPlayer c5e7a97424 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.
2023-05-17 11:01:20 +02:00

10 lines
220 B
Bash
Executable file

#!/bin/sh
if [ -z "$@" ]
then
$(git config --get core.editor) $(git rev-parse --show-toplevel)/.git/info/exclude
else
for file in "$@"
do echo "$file" >> "$(git rev-parse --show-toplevel)/.git/info/exclude"
done
fi