From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v2] git-am: add option to extract email Message-Id: tag into commit log Date: Wed, 2 Jul 2014 11:51:53 +0300 Message-ID: <1404291113-4424-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 10:52:06 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 1X2GGs-0001rV-2l for gcvg-git-2@plane.gmane.org; Wed, 02 Jul 2014 10:52:06 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbaGBIwA convert rfc822-to-quoted-printable (ORCPT ); Wed, 2 Jul 2014 04:52:00 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:37356 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751205AbaGBIv6 (ORCPT ); Wed, 2 Jul 2014 04:51:58 -0400 Received: by mail-wg0-f44.google.com with SMTP id x13so10760529wgg.15 for ; Wed, 02 Jul 2014 01:51:57 -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=8nGFQ25DolnqwxB5d2AsyQODeS677NZvAWLz+yayDFM=; b=Dc/c/lVdsPkKag0gAOJx5g1ytfju3/59KH55+GiDX0gVMObISafp6pJBDAlKHEIu1b uUcORyfBvMZAFiGiGtQbQpiN/M65DLixZT0smyC0EYjbwHJxjxtJhsZBSHNl/H36vgl/ kua/7Tf2vRHnQMxalTJYEypjcH/sYAps+5SXBv2WG+Uy+kik3mL7v8shuGDMdXXGVSju bDmgLuEsRsq/wcubb3UGIQR8vAnW1j4lkpPfGgNKuP8r/KIH2HC4ntAe6u+gKfLa/5y2 mjiW9zRbWzDInjKnXDJ1oIjoETQ+GDkIh/RFTyZJYHfThMwpAqdXLqxgD49wiUObD+9a bNmw== X-Gm-Message-State: ALoCoQlnNKOCeLNwXjcyG1CtKyYcW40WN82ehhnAfi27ShHXPks5eEV1XLcOkXMtn9c6vF6qJG4m X-Received: by 10.180.107.99 with SMTP id hb3mr3119869wib.8.1404291116614; Wed, 02 Jul 2014 01:51:56 -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 19sm53696114wjz.3.2014.07.02.01.51.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jul 2014 01:51:56 -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 --- 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