git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Johannes Sixt <j6t@kdbg.org>
Cc: Lucien Kong <Lucien.Kong@ensimag.imag.fr>,
	tboegi@web.de, git@vger.kernel.org
Subject: Re: rebase [-i --exec | -ix] <CMD>...
Date: Fri, 08 Jun 2012 08:34:55 -0700	[thread overview]
Message-ID: <7vr4tpddgg.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <4FD1162C.50405@kdbg.org> (Johannes Sixt's message of "Thu, 07 Jun 2012 22:59:24 +0200")

Johannes Sixt <j6t@kdbg.org> 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.

      reply	other threads:[~2012-06-08 15:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-07 11:53 commit a63d7ed3017e312ddc752ac89a7d292a745d5f11 broken on MacOS Torsten Bögershausen
2012-06-07 14:20 ` konglu
2012-06-07 16:14   ` Torsten Bögershausen
2012-06-07 16:40     ` konglu
2012-06-07 16:46     ` rebase [-i --exec | -ix] <CMD> Lucien Kong
2012-06-07 17:57       ` Torsten Bögershausen
2012-06-07 18:07         ` konglu
2012-06-07 19:10           ` Torsten Bögershausen
2012-06-07 19:55             ` konglu
2012-06-07 20:35               ` Andreas Schwab
2012-06-07 20:44                 ` konglu
2012-06-07 21:12                   ` Andreas Schwab
2012-06-07 20:49               ` Matthieu Moy
2012-06-07 20:59       ` Johannes Sixt
2012-06-08 15:34         ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vr4tpddgg.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Lucien.Kong@ensimag.imag.fr \
    --cc=git@vger.kernel.org \
    --cc=j6t@kdbg.org \
    --cc=tboegi@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).