* Incorrect handling of interactive rebases with root flag
@ 2017-05-03 22:55 Frank Paulo Filho
0 siblings, 0 replies; only message in thread
From: Frank Paulo Filho @ 2017-05-03 22:55 UTC (permalink / raw)
To: git
If I run an interactive rebase on a branch without the --root flag, git
does not modify (change the hash, etc.) any initial commits that are
being "pick"ed in the same order. However, if I use --root, every single
commit is modified.
Here's an example:
* Old (immediately after running "git rebase -i --root"):
pick d89 root
pick 3e7 bar
pick 57e baz
* New (after editing the "git-rebase-todo" file):
pick d89 root
pick 57e baz
pick 3e7 bar
After this, AFAIK, only baz and bar's hashes should change. However, the
root commit's hash (d89) also changes.
A simpler way to reproduce this is to just run `git rebase -i --root`
and rebase without changing anything. Every commit will be modified.
Is this supposed to happen?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-03 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-03 22:55 Incorrect handling of interactive rebases with root flag Frank Paulo Filho
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).