From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH] git-am: add option to extract email Message-Id: tag into commit log Date: Wed, 2 Jul 2014 11:24:01 +0300 Message-ID: <1404289441-6117-1-git-send-email-avi@cloudius-systems.com> To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jul 02 10:24:14 2014 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 1X2Fpu-0008BQ-HG for gcvg-git-2@plane.gmane.org; Wed, 02 Jul 2014 10:24:14 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbaGBIYI (ORCPT ); Wed, 2 Jul 2014 04:24:08 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:56769 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbaGBIYG (ORCPT ); Wed, 2 Jul 2014 04:24:06 -0400 Received: by mail-wi0-f176.google.com with SMTP id n3so9152210wiv.9 for ; Wed, 02 Jul 2014 01:24:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=K+0loW3rVocMHIqI95TN/MC7D0c1fCriz1A7G1cbsxc=; b=MqOtI9KCGFNP5a50iIhMH7ew0V1Atx+WeECvZmMNs+ZLDwCS2wszux5VaWIDydlImq HGKbrKMe2FzcLgfBmsXqGf1kR1CCSJMvMTyfYWhZ3/f/GPDcH19rCJvsaXJHEhuJ4Hsz Yr5k7LxjENEVAxxTdJZRC6rVLRaGdek3h6i9dcd5eh5XMq2ML6EZdK/nNaGt2eIp2s1j B4wCDUDYTU5fcR5jgwdIhw7CG77rUTUrE6CgHiNnnQiUVJzCzYxdU6HNP8CSzB4scKNE hUbmdoO8y1N2ZgyABRnke7wvUgwezjvtuPkAvvJy9mx86tHaiTW3259Fd5eEQkavAGW7 iQqQ== X-Gm-Message-State: ALoCoQlWVdUFWfFWYREWcY5nH4YBYvAWdwcBbgJf7d5AObcYmcCpJlLhXBmLc56ZQRSCuW4kHKCs X-Received: by 10.180.211.36 with SMTP id mz4mr41516562wic.20.1404289444143; Wed, 02 Jul 2014 01:24:04 -0700 (PDT) Received: from avi.cloudius (84.94.198.183.cable.012.net.il. [84.94.198.183]) by mx.google.com with ESMTPSA id gi15sm53534498wjc.20.2014.07.02.01.24.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jul 2014 01:24:03 -0700 (PDT) X-Mailer: git-send-email 1.9.3 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Some workflows prefer to track exactly which email message was used to generate a commit. This can be used, for example, to generate an automated acknowledgement when a patch is committed as a response to the patch email, or as a reference to the thread which introduced the patch. Support this by adding a --message-id option (abbreviated as -m) to git-am, which will then extract the message ID and append it to the email commit log. Signed-off-by: Avi Kivity --- Documentation/git-am.txt | 6 ++++++ builtin/mailinfo.c | 2 +- git-am.sh | 10 +++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index 9adce37..8a251a1 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -15,6 +15,7 @@ SYNOPSIS [--whitespace=