git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Editing git changelog automatically
Date: Mon, 27 Oct 2014 19:58:51 +0100	[thread overview]
Message-ID: <87zjch9w5w.fsf@igel.home> (raw)
In-Reply-To: <CAM_iQpWNQbv_GTT+H5KNCqqRS3qWfBuBge4+ZTAS_WiaREku4w@mail.gmail.com> (Cong Wang's message of "Sun, 26 Oct 2014 22:27:17 -0700")

Cong Wang <xiyou.wangcong@gmail.com> writes:

> Let's say I want to fix a stupid typo in all of these commits, as
> simply as s/foo/bar/. Usually I use`git rebase -i` and `git commit
> --amend`, but both of them are interactive, apparently I don't want to
> edit them one by one. :)

Both can be scripted, though.

> I know I can change $EDITOR to something like `sed -e 's/foo/bar/'`,
> but this seems pretty ugly. Is there a clean way to do that?

I don't see the ugliness.  There is no requirement that $EDITOR is
interactive.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

      parent reply	other threads:[~2014-10-27 18:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27  5:27 Editing git changelog automatically Cong Wang
2014-10-27  6:05 ` Dennis Kaarsemaker
2014-10-27  8:33   ` Matthieu Moy
2014-10-30  6:14     ` Cong Wang
2014-10-30  6:13   ` Cong Wang
2014-10-27 18:58 ` Andreas Schwab [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=87zjch9w5w.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=git@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.com \
    /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).