From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: git cherry could honour "cherry-picked from commit" messages? Date: Mon, 7 Oct 2013 21:16:18 +0100 Message-ID: <20131007201617.GC31277@pacific.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: git mailing list X-From: git-owner@vger.kernel.org Mon Oct 07 22:16:28 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VTHEA-0007qK-9o for gcvg-git-2@plane.gmane.org; Mon, 07 Oct 2013 22:16:26 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756758Ab3JGUQV (ORCPT ); Mon, 7 Oct 2013 16:16:21 -0400 Received: from coral.adamspiers.org ([85.119.82.20]:33396 "EHLO coral.adamspiers.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756083Ab3JGUQU (ORCPT ); Mon, 7 Oct 2013 16:16:20 -0400 Received: from localhost (0.5.1.a.e.e.2.c.9.3.4.f.4.4.1.4.0.d.3.7.6.a.1.1.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:11a6:73d0:4144:f439:c2ee:a150]) by coral.adamspiers.org (Postfix) with ESMTPSA id 2F5162EB7D for ; Mon, 7 Oct 2013 21:16:19 +0100 (BST) Content-Disposition: inline X-OS: GNU/Linux User-Agent: Mutt/1.5.21 (2010-09-15) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Currently git cherry determines whether a commit has been merged upstream by calculating its patch-id and looking for that in the upstream branch. Is there any reason why it couldn't also look for "(cherry picked from commit ...)" lines which are automatically added by cherry-pick's -x switch? This would combat the blind spot in cherry's current approach concerning the case where the patch-id is changed by the cherry-picking process (e.g. when the diff context changes). Most likely there would be good reasons to make such behaviour optional (e.g. via git-config), but it seems like a waste for cherry to complete ignore these lines which provide useful information. Thanks, Adam