Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / c9 / b395f7bdb78871a81b88831658aae345a9b6a9
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 69CC9431FB6\r
6         for <notmuch@notmuchmail.org>; Wed, 20 Feb 2013 14:24:55 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id pjzOa9e9uA7E for <notmuch@notmuchmail.org>;\r
16         Wed, 20 Feb 2013 14:24:54 -0800 (PST)\r
17 Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1CC0E431FBD\r
21         for <notmuch@notmuchmail.org>; Wed, 20 Feb 2013 14:24:54 -0800 (PST)\r
22 Received: from fctnnbsc30w-156034082078.dhcp-dynamic.fibreop.nb.bellaliant.net\r
23         ([156.34.82.78] helo=zancas.localnet)\r
24         by tesseract.cs.unb.ca with esmtpsa\r
25         (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80)\r
26         (envelope-from <bremner@tethera.net>)\r
27         id 1U8I5r-00086U-8S; Wed, 20 Feb 2013 18:24:51 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.80)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1U8I5l-00028L-In; Wed, 20 Feb 2013 18:24:45 -0400\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [Patch v2 3/4] nmbug: replace hard-coded magic hash with\r
34         git-hash-object\r
35 Date: Wed, 20 Feb 2013 18:24:36 -0400\r
36 Message-Id: <1361399077-7737-4-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.10.4\r
38 In-Reply-To: <1361399077-7737-1-git-send-email-david@tethera.net>\r
39 References: <1361399077-7737-1-git-send-email-david@tethera.net>\r
40 X-Spam_bar: -\r
41 Cc: David Bremner <bremner@debian.org>\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 20 Feb 2013 22:24:55 -0000\r
55 \r
56 From: David Bremner <bremner@debian.org>\r
57 \r
58 This is at least easier to understand than the magic hash. It may also\r
59 be a bit more robust, although it is hard to imagine these numbers\r
60 changing without many other changes in git.\r
61 ---\r
62  devel/nmbug/nmbug |    6 +++---\r
63  1 file changed, 3 insertions(+), 3 deletions(-)\r
64 \r
65 diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug\r
66 index 73d64fe..b9c70e4 100755\r
67 --- a/devel/nmbug/nmbug\r
68 +++ b/devel/nmbug/nmbug\r
69 @@ -15,9 +15,6 @@ $NMBGIT .= '/.git' if (-d $NMBGIT.'/.git');\r
70  \r
71  my $TAGPREFIX = $ENV{NMBPREFIX} || 'notmuch::';\r
72  \r
73 -# magic hash for git\r
74 -my $EMPTYBLOB = 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391';\r
75 -\r
76  # for encoding\r
77  \r
78  my $ESCAPE_CHAR =      '%';\r
79 @@ -50,6 +47,9 @@ if (!exists $command{$subcommand}) {\r
80    usage ();\r
81  }\r
82  \r
83 +# magic hash for git\r
84 +my $EMPTYBLOB = git (qw{hash-object -t blob /dev/null});\r
85 +\r
86  &{$command{$subcommand}}(@ARGV);\r
87  \r
88  sub git_pipe {\r
89 -- \r
90 1.7.10.4\r
91 \r