git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* bug?: ORIG_HEAD incorrect after reset during git-rebase -i
@ 2021-12-16 14:30 Erik Cervin Edin
  2021-12-16 16:27 ` Phillip Wood
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Cervin Edin @ 2021-12-16 14:30 UTC (permalink / raw)
  To: git

Steps to reproduce:
1. git-rebase -i
2. edit XYZ
3. git-reset HEAD~
4. git-commit -C ORIG_HEAD -a
5. git-rebase --continue
6. git-show ORIG_HEAD

Expected behavior:
ORIG_HEAD should point at the previous HEAD of the rebased branch

Actual behavior:
ORIG_HEAD points to XYZ

My understanding from reading https://stackoverflow.com/a/64949884 is
that this is incorrect behavior.

Perhaps this is as intended but I would at least personally prefer
that ORIG_HEAD would point to the previous HEAD of the rebased branch.

Seen in:
git version 2.31.1.windows.1

Possibly related to
e100bea481 - rebase -i: stop overwriting ORIG_HEAD buffer

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-07 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16 14:30 bug?: ORIG_HEAD incorrect after reset during git-rebase -i Erik Cervin Edin
2021-12-16 16:27 ` Phillip Wood
2021-12-16 16:44   ` Erik Cervin Edin
2023-01-05  0:11     ` Philippe Blain
2023-01-06 14:29       ` Phillip Wood
2023-01-07 17:06         ` Philippe Blain
2023-01-07 19:50           ` Philippe Blain

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).