Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5B942431FC0 for ; Wed, 25 Nov 2009 10:01:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NcXBBHBU+14k for ; Wed, 25 Nov 2009 10:01:57 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 37472431FC4 for ; Wed, 25 Nov 2009 10:01:56 -0800 (PST) Received: by mail-bw0-f224.google.com with SMTP id 24so6126486bwz.30 for ; Wed, 25 Nov 2009 10:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer:in-reply-to:references; bh=8dt+JL8B83+v+vUTfZw8UFy5nRl7ffwN64n56Wlollc=; b=waz23rIak0YGZpz9vJgQQm7KSmxYhyB3h4W5gnJOrbJ7E6Tl4zV1vlKfsuI22jikxs jk17x3wfPrslnBxS06vKzwIu9Xa8wUQST91ut/7yorVeaKv0tmhcEdZYG92SdtTj98pn N9hsLx0W7oT1e12NMRr1eKShwcItE+dLhC5gc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=B2TdGxt8sbFlvFJlMgMPXKy4CW+iehYSa7hlvgVuF0URlbY/ErEPBYL95aaNEcI1/U HcyypQjgv8I2LSWLFX26BGHz6EGMEQM1OG3cj/OgCLao7phoE/kXAXHABjEvn7ayZcbr E6PGoIqXK42aqO3lb1vBDmw6FYyfRx5n1EAfU= Received: by 10.204.143.153 with SMTP id v25mr7831994bku.116.1259172115820; Wed, 25 Nov 2009 10:01:55 -0800 (PST) Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id k29sm8997651fkk.51.2009.11.25.10.01.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 25 Nov 2009 10:01:54 -0800 (PST) Sender: Jed Brown From: Jed Brown To: notmuch@notmuchmail.org Date: Wed, 25 Nov 2009 19:02:19 +0100 Message-Id: <1259172139-3274-2-git-send-email-jed@59A2.org> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1259172139-3274-1-git-send-email-jed@59A2.org> References: <1259112914-19806-2-git-send-email-jed@59A2.org> <1259172139-3274-1-git-send-email-jed@59A2.org> Subject: [notmuch] [PATCH 2/2] Recognize reply --format=headers-only-git X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 18:01:58 -0000 This currently means the same thing as --format=headers-only, but this name gives more freedom to change --format=headers-only without breaking existing versions of git. --- notmuch-reply.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index 9ca1236..2b16dae 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -376,7 +376,8 @@ notmuch_reply_command (void *ctx, int argc, char *argv[]) opt = argv[i] + sizeof ("--format=") - 1; if (strcmp (opt, "default") == 0) { reply_format_func = notmuch_reply_format_default; - } else if (strcmp (opt, "headers-only") == 0) { + } else if (strcmp (opt, "headers-only") == 0 || + strcmp (opt, "headers-only-git") == 0) { reply_format_func = notmuch_reply_format_headers_only; } else { fprintf (stderr, "Invalid value for --format: %s\n", opt); -- 1.6.5.3