git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Teach cherry-pick and rebase to ignore redundant commits
@ 2016-01-11  5:00 David Greene
  2016-01-11  5:00 ` [PATCH 1/5] Teach cherry-pick to skip redundant commits if asked David Greene
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: David Greene @ 2016-01-11  5:00 UTC (permalink / raw)
  To: git; +Cc: gitster, peff, chris, nhorman

This patch set adds a --skip-redundant-commits option to both
cherry-pick and rebase.  Currently, if cherry-pick applies a
commit that happens to become empty after conflict resolution,
it will abort and ask the user what to do.  This behavior
propagates to rebase when rebase is forced to fall back to
cherry-pick in certain situations.

This abort failure mode makes it difficult to script certain
types of operations that users might expect to work: for example
cherry-picking a commit on top of itself or rebasing a set of
commits back onto its own history.

With --skip-redundant commits users and/or scripts can choose
to have cherry-pick/rebase simply ignore the redundant commit
and move on.  There is already a --keep-redundant-commits flag
so this is really just supplying the natural counter-behavior
users might way.

                     -Davod

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

end of thread, other threads:[~2016-01-12  3:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-11  5:00 [PATCH] Teach cherry-pick and rebase to ignore redundant commits David Greene
2016-01-11  5:00 ` [PATCH 1/5] Teach cherry-pick to skip redundant commits if asked David Greene
2016-01-11 19:28   ` Junio C Hamano
2016-01-12  3:10     ` David A. Greene
2016-01-11  5:00 ` [PATCH 2/5] Add test for cherry-pick --skip-redundant-commits David Greene
2016-01-11  5:00 ` [PATCH 3/5] Add --skip-redundant-commits option to rebase David Greene
2016-01-11  5:00 ` [PATCH 4/5] Add test for redundant rebase David Greene
2016-01-11  5:00 ` [PATCH 5/5] Add test for rebase with merges amd redundant commits David Greene
2016-01-11 23:50   ` Eric Sunshine

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 NNTP newsgroup(s).