From: "Jean-Baptiste Quenot" <jbq@caraldi.com>
To: git@vger.kernel.org
Subject: Recording cherry-picked commits
Date: Fri, 21 Mar 2008 13:33:11 +0100 [thread overview]
Message-ID: <ae63f8b50803210533n12645fb3w9a8be601c4cc394@mail.gmail.com> (raw)
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/
next reply other threads:[~2008-03-21 12:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-21 12:33 Jean-Baptiste Quenot [this message]
2008-03-22 16:37 ` Recording cherry-picked commits 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae63f8b50803210533n12645fb3w9a8be601c4cc394@mail.gmail.com \
--to=jbq@caraldi.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).