git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [RFC] should `git rebase --keep-base` imply `--reapply-cherry-picks` ?
@ 2020-07-14  2:44 Philippe Blain
  2020-07-14  3:10 ` Denton Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Philippe Blain @ 2020-07-14  2:44 UTC (permalink / raw)
  To: Git mailing list
  Cc: Eric Sunshine, Ævar Arnfjörð Bjarmason,
	Johannes Schindelin, Denton Liu, Jonathan Tan, Elijah Newren

Hello,

I learned today that doing `git rebase --keep-base master` 
will drop commits that were cherry-picked from master to the current branch. 
I was simply doing a code clean up on my feature branch (the full command was
`git rebase -i --keep-base master`), and this kind of confused me for a moment.

Is this a sane default ? I understand that it is a good default when we are rebasing 
*on top* of master, but here I'm just doing some squashing and fixup's and I did not
want the commit I had cherry-picked from master to disappear (yet). In fact, because it
was dropped, it created a modify/delete conflict because in a subsequent commit 
in my feature branch I'm modifying files that are added in the commit I cherry-picked.

How would a change that made '--reapply-cherry-picks' be the default when using 'keep-base'
be received ?

Tangential question: in any case, would it make sense to still add the "dropped because 
already upstream" commits to the todo list, in the case of an interactive rebase ? 
(maybe commented out, or listed as 'drop' with some kind of comment saying those 
are dropped because they appear textually upstream?)

Cheers,
Philippe.
P.S. I CC'd those who were involved with the 'keep-base' patch or the 'reapply-cherry-picks' patch.

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

end of thread, other threads:[~2020-07-15  8:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14  2:44 [RFC] should `git rebase --keep-base` imply `--reapply-cherry-picks` ? Philippe Blain
2020-07-14  3:10 ` Denton Liu
2020-07-14  3:51   ` Jonathan Tan
2020-07-15  3:32     ` Denton Liu
2020-07-14  9:52   ` Phillip Wood
2020-07-14 20:38     ` Johannes Schindelin
2020-07-15  3:20       ` Denton Liu
2020-07-15  8:53         ` Phillip Wood

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