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

Re: [BUG?] "git rebase --interactive" forces me to edit message.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 5, 2008, 04:40 UTC
Message-ID
<alpine.DEB.1.00.0806050539360.21190@racer>
In-Reply-To
<7v3ans5xit.fsf@gitster.siamese.dyndns.org>
Hi,
On Wed, 4 Jun 2008, Junio C Hamano wrote:
Show 19 quoted lines
> diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
> index 0ca986f..a6b6c9e 100755
> --- a/git-rebase--interactive.sh
> +++ b/git-rebase--interactive.sh
> @@ -390,11 +390,14 @@ do
>  				die "Cannot find the author identity"
>  			if test -f "$DOTEST"/amend
>  			then
> +				do_edit=-e
>  				git reset --soft HEAD^ ||
>  				die "Cannot rewind the HEAD"
> +			else
> +				do_edit=
>  			fi
>  			export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE &&
> -			git commit --no-verify -F "$DOTEST"/message -e ||
> +			git commit --no-verify -F "$DOTEST"/message $do_edit ||
>  			die "Could not commit staged changes."
>  		fi

I guess with the recent changes, I do not count as author of rebase -i anymore. Otherwise, I would say "NACK" for the reasons described in my other mail.

Ciao, Dscho

Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 8 in “[BUG?] "git rebase --interactive" forces me to edit message.”
  1. しらいしななこJun 5, 2008
  2. Junio C HamanoJun 5, 2008
  3. Johannes SchindelinJun 5, 2008
  4. Johannes SchindelinJun 5, 2008
  5. しらいしななこJun 6, 2008
  6. Junio C HamanoJun 6, 2008
  7. Johannes SchindelinJun 7, 2008
  8. Junio C HamanoJun 7, 2008

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.