#!/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