darkrc/bin/git-ignore

11 lines
220 B
Text
Raw Permalink Normal View History

#!/bin/sh
if [ -z "$@" ]
then
2023-01-31 15:59:13 +00:00
$(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