mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #601 from richardfearn/git-sed-spaces-in-filenames
git-sed: use "grep -z" and "xargs -0" to cope with spaces in filenames
This commit is contained in:
commit
76694bccdd
|
|
@ -64,6 +64,6 @@ actual command:
|
|||
shift
|
||||
done
|
||||
|
||||
command="git grep -l '$search' | xargs sed -i 's/$search/$replacement/$flags'"
|
||||
git grep -l "$search" | xargs sed -i "s/$search/$replacement/$flags"
|
||||
command="git grep -lz '$search' | xargs -0 sed -i 's/$search/$replacement/$flags'"
|
||||
git grep -lz "$search" | xargs -0 sed -i "s/$search/$replacement/$flags"
|
||||
do_commit
|
||||
|
|
|
|||
Loading…
Reference in a new issue