* [PATCH 3/3] am: simplify "sq" function by using "git rev-parse --sq-quote"
@ 2009-04-24 6:29 Christian Couder
0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2009-04-24 6:29 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
git-am.sh | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/git-am.sh b/git-am.sh
index 6d1848b..578780b 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 () {
--
1.6.3.rc1.112.g17e25
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-24 6:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 6:29 [PATCH 3/3] am: simplify "sq" function by using "git rev-parse --sq-quote" Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).