Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
am: simplify "sq" function by using "git rev-parse --sq-quote"
author
Christian Couder
<chriscool@tuxfamily.org>
Fri, 24 Apr 2009 06:29:01 +0000
(08:29 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 10 May 2009 07:30:29 +0000
(
00:30
-0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
de52f5a
)
diff --git
a/git-am.sh
b/git-am.sh
index 6d1848b6cce89e4953a3ca6e1b2e6e1611277a4a..578780be138b216dc89333e1fde87ddcb91e5e54 100755
(executable)
--- 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 () {