git-rebase--interactive.sh: use printf instead of echo to print commit message
Replace the echo statements that operate on $rest with printf's to restore
what was lost from 938791cd
. This avoids any mangling that XSI-conformant
echo's may introduce.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2d6ca6ef55
commit
d1c3b10f7c
@ -625,7 +625,7 @@ skip_unnecessary_picks () {
|
|||||||
case "$fd,$command" in
|
case "$fd,$command" in
|
||||||
3,pick|3,p)
|
3,pick|3,p)
|
||||||
# pick a commit whose parent is current $ONTO -> skip
|
# pick a commit whose parent is current $ONTO -> skip
|
||||||
sha1=$(echo "$rest" | cut -d ' ' -f 1)
|
sha1=$(printf '%s' "$rest" | cut -d ' ' -f 1)
|
||||||
case "$(git rev-parse --verify --quiet "$sha1"^)" in
|
case "$(git rev-parse --verify --quiet "$sha1"^)" in
|
||||||
"$ONTO"*)
|
"$ONTO"*)
|
||||||
ONTO=$sha1
|
ONTO=$sha1
|
||||||
@ -642,7 +642,7 @@ skip_unnecessary_picks () {
|
|||||||
fd=1
|
fd=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "$command${rest:+ }$rest" >&$fd
|
printf '%s\n' "$command${rest:+ }$rest" >&$fd
|
||||||
done <"$TODO" >"$TODO.new" 3>>"$DONE" &&
|
done <"$TODO" >"$TODO.new" 3>>"$DONE" &&
|
||||||
mv -f "$TODO".new "$TODO" &&
|
mv -f "$TODO".new "$TODO" &&
|
||||||
case "$(peek_next_command)" in
|
case "$(peek_next_command)" in
|
||||||
|
Loading…
Reference in New Issue
Block a user