[PATCH] notmuch.c: Shorten version string
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Fri, 16 Apr 2010 07:06:02 +0000 (09:06 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:40 +0000 (09:36 -0800)
6a/3f8fafc8d3f1375f653cfac9b8de7dffa17247 [new file with mode: 0644]

diff --git a/6a/3f8fafc8d3f1375f653cfac9b8de7dffa17247 b/6a/3f8fafc8d3f1375f653cfac9b8de7dffa17247
new file mode 100644 (file)
index 0000000..60888eb
--- /dev/null
@@ -0,0 +1,68 @@
+Return-Path: <Sebastian@SSpaeth.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8F5CA4196F0\r
+       for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 00:06:08 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Lka+szqESphE for <notmuch@notmuchmail.org>;\r
+       Fri, 16 Apr 2010 00:06:08 -0700 (PDT)\r
+Received: from homiemail-a19.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
+       [208.97.132.145])\r
+       by olra.theworths.org (Postfix) with ESMTP id EB3E8431FC1\r
+       for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 00:06:07 -0700 (PDT)\r
+Received: from localhost.localdomain (unknown [195.190.188.219])\r
+       by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id A58AA604061; \r
+       Fri, 16 Apr 2010 00:06:06 -0700 (PDT)\r
+From: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+To: Notmuch developer list <notmuch@notmuchmail.org>\r
+Subject: [PATCH] notmuch.c: Shorten version string\r
+Date: Fri, 16 Apr 2010 09:06:02 +0200\r
+Message-Id: <1271401562-8519-1-git-send-email-Sebastian@SSpaeth.de>\r
+X-Mailer: git-send-email 1.7.0.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 16 Apr 2010 07:06:08 -0000\r
+\r
+We previously output "notmuch version 0.1" as response to notmuch --version.\r
+Shorten this to "notmuch 0.1" as we know that we will receive a version\r
+number when we explicitely ask for it.\r
+\r
+Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>\r
+---\r
+ notmuch.c |    2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/notmuch.c b/notmuch.c\r
+index dcfda32..0eea5e1 100644\r
+--- a/notmuch.c\r
++++ b/notmuch.c\r
+@@ -474,7 +474,7 @@ main (int argc, char *argv[])\r
+       return notmuch_help_command (NULL, 0, NULL);\r
\r
+     if (STRNCMP_LITERAL (argv[1], "--version") == 0) {\r
+-      printf ("notmuch version " STRINGIFY(NOTMUCH_VERSION) "\n");\r
++      printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");\r
+       return 0;\r
+     }\r
\r
+-- \r
+1.7.0.4\r
+\r