diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2009-04-24 08:29:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-10 00:30:29 -0700 |
commit | 47c9739e5e02484de618ca70a592ecd25c05fd1a (patch) | |
tree | ace3b1e0f1ba4c2d038eb4562240ad20b2f3cf96 /git-am.sh | |
parent | de52f5a806f58c6b73b2e24768530213fab5a635 (diff) | |
download | git-47c9739e5e02484de618ca70a592ecd25c05fd1a.tar.gz |
am: simplify "sq" function by using "git rev-parse --sq-quote"
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-x | git-am.sh | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -44,11 +44,7 @@ else fi sq () { - for sqarg - do - printf "%s" "$sqarg" | - sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/.*/ '\''&'\''/' - done + git rev-parse --sq-quote "$@" } stop_here () { |