Skip to content

Commit

Permalink
Merge pull request tj#231 from petersohn/master
Browse files Browse the repository at this point in the history
git-obliterate now supports whitespaces in filename.
  • Loading branch information
hemanth committed Jul 6, 2014
2 parents d437418 + 698d027 commit 45b3515
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/git-obliterate
@@ -1,3 +1,4 @@
file=$1
test -z $file && echo "file required." 1>&2 && exit 1
git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all
#!/bin/sh
file="$1"
test -z "$file" && echo "file required." 1>&2 && exit 1
git filter-branch -f --index-filter "git rm -r --cached '$file' --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all

0 comments on commit 45b3515

Please sign in to comment.