Re: [RFC] origin link for cherry-pick and revert
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Sep 10, 2008, 20:32 UTC
- Message-ID
- <20080910203249.GX4829@genesis.frugalware.org>
- In-Reply-To
- <20080909132212.GA25476@cuci.nl>
On Tue, Sep 09, 2008 at 03:22:12PM +0200, "Stephen R. van den Berg" <srb@cuci.nl> wrote:
> origin a1184d85e8752658f02746982822f43f32316803 2 > author Junio C Hamano <gitster@pobox.com> 1220132115 -0700 > committer Junio C Hamano <gitster@pobox.com> 1220153445 -0700
First, sorry for joining the thread lately, as far as I see the idea I want to shere here was not mentioned by anybody yet.
So, git revert already includes the "origin" of the commit in the commit message, and I think that is fine for most people.
What about adding an option to cherry-pick to add a similar "commit 7b27718bdb1b70166383dec91391df5534d449ee upstream" or similar string to the commit message?
As far as I see the kernel -stable tree already have this, but it is added manually and in many different forms, like:
[ Upstream commit 5f3a9a207f1fccde476dd31b4c63ead2967d934f ]
commit 7b27718bdb1b70166383dec91391df5534d449ee upstream
Already in Linus' tree: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b25b791b13aaa336b56c4f9bd417ff126363f80b
etc.
Once git would provide a standard way to do this, that could be used to avoid this.