aboutsummaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-04-24 08:29:01 +0200
committerJunio C Hamano <gitster@pobox.com>2009-05-10 00:30:29 -0700
commit47c9739e5e02484de618ca70a592ecd25c05fd1a (patch)
treeace3b1e0f1ba4c2d038eb4562240ad20b2f3cf96 /git-am.sh
parentde52f5a806f58c6b73b2e24768530213fab5a635 (diff)
downloadgit-47c9739e5e02484de618ca70a592ecd25c05fd1a.tar.gz
git-47c9739e5e02484de618ca70a592ecd25c05fd1a.tar.xz
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-xgit-am.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/git-am.sh b/git-am.sh
index 6d1848b6c..578780be1 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -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 () {