git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Feature idea: git rebase --exec $CMD

From
Antonio Ospite <ospite@studenti.unina.it>
Date
May 6, 2012, 10:44 UTC
Message-ID
<20120506124420.bc796b6e2852e6aec5da36d8@studenti.unina.it>
In-Reply-To
<vpqobq1mxru.fsf@bauges.imag.fr>

On Sun, 06 May 2012 12:03:49 +0200 Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

Show 14 quoted lines
> Antonio Ospite <ospite@studenti.unina.it> writes:
> 
> > 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?).
> 
> Actually, implementation-wise, it's simpler to have '-x' imply '-i', and
> suggest a todo-list containing 'x' lines. Then, the code would simply
> have to add these "x whatever" lines, and let the
> "git-rebase--interactive.sh" mechanics do the job. That would show the
> "x whatever" lines to the user, but that can be seen as added value,
> since it gives an opportunity to the user to remove or edit some of them
> if needed.
>
Thanks Matthieu,

this sounds like a reasonable default behavior for the case of '-x' and '-i' _combined_, but I still think '-x' with no invocation of $EDITOR can have its use case (e.g. a "make validate-commits" calling 'git rebase -x "make test" master').

But I'd like to hear other opinions about that.
Thanks,
   Antonio
-- 
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?
Previous: Matthieu MoyNext: Jeff King
Message 4 of 9 in “Feature idea: git rebase --exec $CMD”
  1. Antonio OspiteMay 5, 2012
  2. Felipe ContrerasMay 5, 2012
  3. Matthieu MoyMay 6, 2012
  4. Antonio OspiteMay 6, 2012
  5. Jeff KingMay 6, 2012
  6. Matthieu MoyMay 10, 2012
  7. dag@cray.comMay 23, 2012
  8. Matthieu MoyMay 23, 2012
  9. dag@cray.comMay 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.