mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
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>
This commit is contained in:
parent
de52f5a806
commit
47c9739e5e
1 changed files with 1 additions and 5 deletions
|
@ -44,11 +44,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sq () {
|
sq () {
|
||||||
for sqarg
|
git rev-parse --sq-quote "$@"
|
||||||
do
|
|
||||||
printf "%s" "$sqarg" |
|
|
||||||
sed -e 's/'\''/'\''\\'\'''\''/g' -e 's/.*/ '\''&'\''/'
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_here () {
|
stop_here () {
|
||||||
|
|
Loading…
Reference in a new issue