git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Bug: `git commit --fixup` with duplicate commit messages
@ 2018-12-14 12:30 Oliver Joseph Ash
  2018-12-14 13:39 ` Johannes Schindelin
  2018-12-14 14:00 ` Rafael Ascensão
  0 siblings, 2 replies; 4+ messages in thread
From: Oliver Joseph Ash @ 2018-12-14 12:30 UTC (permalink / raw)
  To: git

Hi,

I believe I have found a bug in `git commit --fixup`.

Steps to reproduce:
1. Create a git history with two commits (A and B) with the same
commit message (e.g. foo)
2. Create a new commit using `git commit --fixup {SHA}`, referring to
the last commit SHA
3. Run an interactive rebase

Expected: the fixup commit should appear below the last commit in the todo list.

Actual: the fixup commit appears below the first commit in the todo list.

It seems that the fixup commit is moved below the most recent commit
with a matching commit message, however in this case there are
duplicate commit messages. I would expect the fixup commit to be moved
below the commit SHA I specified when I ran `git commit --fixup`.

Thanks,
Olly

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

end of thread, other threads:[~2018-12-14 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 12:30 Bug: `git commit --fixup` with duplicate commit messages Oliver Joseph Ash
2018-12-14 13:39 ` Johannes Schindelin
2018-12-14 14:00 ` Rafael Ascensão
2018-12-14 16:33   ` John Passaro

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