git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Recording cherry-picked commits
@ 2008-03-21 12:33 Jean-Baptiste Quenot
  2008-03-22 16:37 ` Jean-Baptiste Quenot
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Baptiste Quenot @ 2008-03-21 12:33 UTC (permalink / raw)
  To: git

Hi there,

Cherry-picking is great with Git, both with git-cherry-pick and
git-cherry.   I use them to pick commits from my development branch to
my stable maintenance branch that goes to production.

But when a particular commit is slightly different between the two
branches (due to eg a conflict resolution in my stable branch), then
git-cherry still lists the commit as only present in the development
branch.  This is a feature, as documented in the man page, because
git-cherry compares the changeset rather than the commit id.

So I'm wondering if there's a way to record the commit ID as being
already picked from the development branch to the stable branch, so
that it's not listed again when I provide the same arguments to
cherry-pick.  I was used to this kind of feature with svnmerge, a
wrapper script around svn that records cherry-picked commits in a
Subversion property called svnmerge-integrated on the root directory.
But with Git, what is the best practice for knowing which commits you
already picked?

Ideally, the set of already-picked commits would be versioned in the
Git repo itself, so that other developers can watch what commits are
available to pick as well.

Thanks in advance,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/blog/

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

end of thread, other threads:[~2008-03-23 14:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 12:33 Recording cherry-picked commits Jean-Baptiste Quenot
2008-03-22 16:37 ` Jean-Baptiste Quenot
2008-03-22 22:48   ` Rafael Garcia-Suarez
2008-03-23  0:37     ` Junio C Hamano
2008-03-23 11:07     ` Jean-Baptiste Quenot
2008-03-23 12:11       ` Johannes Schindelin
2008-03-23 13:57         ` Rafael Garcia-Suarez
2008-03-23 14:12           ` Johannes Schindelin

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