Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2009-04-24 10:29:01 +0400
committerJunio C Hamano <gitster@pobox.com>2009-05-10 11:30:29 +0400
commit47c9739e5e02484de618ca70a592ecd25c05fd1a (patch)
treeace3b1e0f1ba4c2d038eb4562240ad20b2f3cf96 /git-am.sh
parentde52f5a806f58c6b73b2e24768530213fab5a635 (diff)
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 6d1848b6cc..578780be13 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 () {