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>
Christian Couder committed
Apr 24, 2009 at 08:29 UTC
47c9739e5e02484de618ca70a592ecd25c05fd1a
1 file changed
+1
-5
git-am.sh
+1
-5
@@ -44,11 +44,7 @@ else
44
fi
45
46
sq () {
47
- for sqarg
48
- do
49
- printf "%s" "$sqarg" |
50
- sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/.*/ '\''&'\''/'
51
- done
47
+ git rev-parse --sq-quote "$@"
48
}
49
50
stop_here () {