darkrc/bin/git-ignore

8 lines
191 B
Bash
Executable file

#!/bin/sh
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"
fi