git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Antonio Ospite <ospite@studenti.unina.it>
To: git@vger.kernel.org
Cc: Matthieu Moy <Matthieu.Moy@imag.fr>
Subject: Feature idea: git rebase --exec $CMD
Date: Sat, 5 May 2012 13:26:50 +0200	[thread overview]
Message-ID: <20120505132650.637c4e06086654e0dbf641fc@studenti.unina.it> (raw)

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

Hi,

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.

Can this functionality be exposed from the command line as well?
I am thinking to a [-x|--exec <command>] options which accepts a command
as an argument, and executes such command after each commit in the list
of commits which are going to be rebased, and stops the rebasing if the
command returns a non-0 value.

Maybe this -x option should conflict with -i to simplify its "execute
the command after each commit" semantics (what if it is combined with -i
and 'x/exec' lines?).

I can draft the man page section for it, but I doubt I can work on the
code for now, so I wanted to throw the idea here and see if anyone else
wants to pick it up.

I read that calling a "make test" command after each commit could be
done using "git rev-list" like in
http://sethrobertson.github.com/GitPostProduction/gpp.html#post-post-production
but a more friendly way to do that from CLI would be great.

Thanks,
   Antonio

P.S. I am not subscribed to the list, please CC me.

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2012-05-05 11:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 11:26 Antonio Ospite [this message]
2012-05-05 11:54 ` Feature idea: git rebase --exec $CMD 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
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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=20120505132650.637c4e06086654e0dbf641fc@studenti.unina.it \
    --to=ospite@studenti.unina.it \
    --cc=Matthieu.Moy@imag.fr \
    --cc=git@vger.kernel.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).