OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de52f5a
)
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
diff --git
a/git-am.sh
b/git-am.sh
index
6d1848b
..
578780b
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 () {