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

Re: An idea for the "Leftover Bits": rebase -x to imply -i

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 16, 2016, 22:33 UTC
Message-ID
<xmqqpouu2guc.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kZg3QkfjB1hwZKRS9Hqg-1H=kQwuwByX_rAMzveXtnp7Q@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> * "rebase -exec" requiries to be an explicit interactive rebase (i.e.
>   --interactive was given)
>   Could --exec just imply --interactive with a no-op editor?

Perhaps like this? You have to defend the change with a good description, have to protect the new behaviour with a new test from future breakages, and may have to adjust existing tests if they are expecting the current behaviour (I didn't test).

 git-rebase.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/git-rebase.sh b/git-rebase.sh
index cf60c43..c68baa0 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -248,6 +248,7 @@ do
 		;;
 	--exec=*)
 		cmd="${cmd}exec ${1#--exec=}${LF}"
+		interactive_rebase=explicit
 		;;
 	--interactive)
 		interactive_rebase=explicit
Previous: Junio C Hamano
Message 6 of 6 in “An idea for the "Leftover Bits": rebase -x to imply -i”
  1. Stefan BellerMar 16, 2016
  2. Junio C HamanoMar 16, 2016
  3. Junio C HamanoMar 16, 2016
  4. Stefan BellerMar 16, 2016
  5. Junio C HamanoMar 17, 2016
  6. Junio C HamanoMar 16, 2016

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.