git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Detecting redundant commits
@ 2016-01-04 15:59 greened
  2016-01-05  4:00 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: greened @ 2016-01-04 15:59 UTC (permalink / raw)
  To: git

I am attempting to teach cherry-pick to handle redundant commits
gracefully (via a new --skip-redundant-commits option) instead of
aborting.  However, I'm struggling a bit with how to check if the
changes in a commit will become redundant when appied to the new HEAD.

I found diff_tree_sha1 which seems promising.  Am I on the right track?
If not, what's the best way to determine whether a commit object is
redundant with respect to HEAD?

                           -David

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 15:59 Detecting redundant commits greened
2016-01-05  4:00 ` Jeff King
2016-01-05 16:31   ` David Greene
2016-01-08  3:14     ` David A. Greene

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