Change logic of git-ignored files