All of lore.kernel.org
 help / color / mirror / Atom feed
From: <dag@cray.com>
To: Antonio Ospite <ospite@studenti.unina.it>
Cc: <git@vger.kernel.org>, Matthieu Moy <Matthieu.Moy@imag.fr>
Subject: Re: Feature idea: git rebase --exec $CMD
Date: Wed, 23 May 2012 10:12:08 -0500	[thread overview]
Message-ID: <nngfwar3p9z.fsf@transit.us.cray.com> (raw)
In-Reply-To: <20120505132650.637c4e06086654e0dbf641fc@studenti.unina.it> (Antonio Ospite's message of "Sat, 5 May 2012 13:26:50 +0200")

Antonio Ospite <ospite@studenti.unina.it> writes:

> I find the x/exec function in "git rebase -i" very useful, but it may
> be tedious to edit the commit list to add something like "make test"
> after each commit.

I've taken a more general approach inspired by
run-command-on-git-revisions at
https://github.com/garybernhardt/dotfiles/tree/master/bin

I took that and turned it into a git-run-command subcommand.  It will
take an arbitrary command and run it on each revision specified by a
revlist.

I think that's a more flexible approach than tying it to rebase.

Thoughts?

                          -Dave

  parent reply	other threads:[~2012-05-23 15:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 11:26 Feature idea: git rebase --exec $CMD Antonio Ospite
2012-05-05 11:54 ` Felipe Contreras
2012-05-06 10:03 ` Matthieu Moy
2012-05-06 10:44   ` Antonio Ospite
2012-05-06 12:26   ` Jeff King
2012-05-10  8:28 ` Matthieu Moy
2012-05-23 15:12 ` dag [this message]
2012-05-23 15:41   ` Matthieu Moy
2012-05-23 15:50     ` dag

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=nngfwar3p9z.fsf@transit.us.cray.com \
    --to=dag@cray.com \
    --cc=Matthieu.Moy@imag.fr \
    --cc=git@vger.kernel.org \
    --cc=ospite@studenti.unina.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.