From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v3] git-am: add option to extract email Message-Id: tag into commit log Date: Wed, 2 Jul 2014 16:53:22 +0300 Message-ID: <1404309202-10438-1-git-send-email-avi@cloudius-systems.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Jul 02 15:53:52 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 1X2Kys-0006fx-Bf for gcvg-git-2@plane.gmane.org; Wed, 02 Jul 2014 15:53:50 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbaGBNxq convert rfc822-to-quoted-printable (ORCPT ); Wed, 2 Jul 2014 09:53:46 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:61290 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbaGBNxp (ORCPT ); Wed, 2 Jul 2014 09:53:45 -0400 Received: by mail-wi0-f179.google.com with SMTP id cc10so528299wib.6 for ; Wed, 02 Jul 2014 06:53:38 -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:mime-version :content-type:content-transfer-encoding; bh=dF8iUSnKcBFx8wJxhtlCzpFGjyPUTh8FaRhUz7H1n90=; b=V6sw7sv7XBlVRMKPov224eDt7rgBt+Dh1zMRVVZpQY3TXvJffTeKf8FZkJ/MyihklY m6y9nowhpOjq/WEWe0vqeKRHA2rF1sPlLkyVmfFd0D58f1O1MHq6IOnNrzrryol4jFv0 MfwvWorkWGQmXpBskXR8QLBS8S08FqN/5MYNM2QwIPI0jSOl7XGr9nnHAQpg1Bo2b51d etlrol12ESPkyIRrw7oXVWQZsVQzLMldKOZuU5L1LtjtKKxa2YLzYtgUbmuCFwfWYpeY ojTIDozwp0RVhEloLUrmKngJ87Kdu+D25JbufYkUadGTVFfiJN76/CDNo1C+3iwJvPFz jDcA== X-Gm-Message-State: ALoCoQki0D3huq79FDwPVBZ5/H46RE52DuGbebp2JpDnFGHJCK4lrCNiwKh++6XxbnWuWSkxrcvC X-Received: by 10.180.208.35 with SMTP id mb3mr38028804wic.48.1404309216513; Wed, 02 Jul 2014 06:53:36 -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 i4sm55461182wib.21.2014.07.02.06.53.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jul 2014 06:53:35 -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 --- v3: remove bashism and unneeded quoting v2: adjust to pass test suite (t5100) Documentation/git-am.txt | 6 ++++++ builtin/mailinfo.c | 2 +- git-am.sh | 10 +++++++++- t/t5100/info0004 | 1 + t/t5100/info0005 | 1 + t/t5100/info0012 | 1 + 6 files changed, 19 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=3D