Permalink
Browse files

much better...

  • Loading branch information...
1 parent 8392a69 commit 28d2a5cd7548135781e48e13b21ea6dd8915a086 @k-anderson k-anderson committed Apr 5, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/git_remove_ignored.sh
@@ -17,10 +17,12 @@ fWelcome() {
fFindIgnoredFiles() {
while read file; do
fGitRm ${file}
- done < <(find ../$1)
+ done < <(find ../$1 2> /dev/null)
}
fGitRm() {
+ git ls-files --error-unmatch "$1" 2> /dev/null || return 0
+
echo "# git rm --cached $1"
git rm --cached $1
}

0 comments on commit 28d2a5c

Please sign in to comment.