Re: rebase [-i --exec | -ix] <CMD>... From: Junio C Hamano <hidden> Date: 2016-06-15 22:54:01 Johannes Sixt [off-list ref] writes: How about this? { first=t while read -r insn rest do case $insn in pick) test -n "$first" || printf "%s" "$cmd" ;; esac printf "%s %s\n" "$insn" "$rest" first= done printf "%s" "$cmd" } <"$1" >"$1.new" && mv "$1.new" "$1" together with: ... This is my favorite version among the ones I've seen so far.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help