Applying patches directly from emails?
[notmuch-archives.git] / 27 / c4822cdd6930a4d980a1b06c70a066827a22c4
1 Return-Path: <too@guru.guru-group.fi>\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 BD6CB431FBC\r
6         for <notmuch@notmuchmail.org>; Tue,  7 Feb 2012 08:34:19 -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 NX6IetVx8st0 for <notmuch@notmuchmail.org>;\r
16         Tue,  7 Feb 2012 08:34:19 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 1FF6C431FAE\r
19         for <notmuch@notmuchmail.org>; Tue,  7 Feb 2012 08:34:19 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 35EA168055; Tue,  7 Feb 2012 18:34:19 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH] uncrustify.cfg: comments and more types\r
25 Date: Tue,  7 Feb 2012 18:34:17 +0200\r
26 Message-Id: <1328632457-26230-1-git-send-email-tomi.ollila@iki.fi>\r
27 X-Mailer: git-send-email 1.7.6.1\r
28 In-Reply-To: <id:"1327527465-10321-1-git-send-email-tomi.ollila@iki.fi">\r
29 References: <id:"1327527465-10321-1-git-send-email-tomi.ollila@iki.fi">\r
30 Cc: Tomi Ollila <tomi.ollila@iki.fi>\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.13\r
33 Precedence: list\r
34 List-Id: "Use and development of the notmuch mail system."\r
35         <notmuch.notmuchmail.org>\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
37         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
39 List-Post: <mailto:notmuch@notmuchmail.org>\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
43 X-List-Received-Date: Tue, 07 Feb 2012 16:34:19 -0000\r
44 \r
45 Changes to devel/uncrustify.cfg:\r
46 \r
47 * Updated header comment to state this is config file for *notmuch*.\r
48 * Added comment about the reason of 'type' keyword used.\r
49 * Added some more custom types woth 'type' keyword.\r
50 * Have (every) multiline comment lines start with '*'.\r
51 ---\r
52  devel/uncrustify.cfg |   21 +++++++++++++--------\r
53  1 files changed, 13 insertions(+), 8 deletions(-)\r
54 \r
55 diff --git a/devel/uncrustify.cfg b/devel/uncrustify.cfg\r
56 index d8075ba..bab9761 100644\r
57 --- a/devel/uncrustify.cfg\r
58 +++ b/devel/uncrustify.cfg\r
59 @@ -1,13 +1,13 @@\r
60  #\r
61 -# uncrustify config file for the linux kernel\r
62 +# Uncrustify config file for notmuch.\r
63 +# Based on uncrustify config file for the linux kernel\r
64  #\r
65  # $Id: linux-indent.cfg 488 2006-09-09 12:44:38Z bengardner $\r
66  # Taken from the uncrustify distribution under license (GPL2+)\r
67  #\r
68 -# sample usage:\r
69 +# Sample usage:\r
70  #        uncrustify --replace -c uncrustify.cfg foo.c\r
71  #\r
72 -#\r
73  \r
74  indent_with_tabs       = 2             # 1=indent to level only, 2=indent with tabs\r
75  align_with_tabs                = TRUE          # use tabs to align\r
76 @@ -18,6 +18,8 @@ indent_columns                = 4\r
77  \r
78  indent_label           = -2            # pos: absolute col, neg: relative column\r
79  \r
80 +indent_cmt_with_tabs   = false         # true would align to tabstop always...\r
81 +\r
82  #\r
83  # inter-symbol newlines\r
84  #\r
85 @@ -54,11 +56,14 @@ nl_after_struct = 0\r
86  # mod_full_brace_do    = remove        # "do a--; while ();" vs "do { a--; } while ();"\r
87  # mod_full_brace_while = remove        # "while (a) a--;" vs "while (a) { a--; }"\r
88  \r
89 -#\r
90 -# Extra types used in notmuch source.\r
91 -# (add more on demand)\r
92  \r
93 -type GMimeObject mime_node_t\r
94 +# In case some custom types aren't detected properly by uncrustify\r
95 +# add those to this section below. For example there are cases where\r
96 +# uncrustify doesn't know whether a 'token' is part of pointer type\r
97 +# or left operand of a binary multiplication operation.\r
98 +\r
99 +type GMimeObject GMimeCryptoContext GMimeCipherContext\r
100 +type mime_node_t notmuch_message_t\r
101  \r
102  #\r
103  # inter-character spacing options\r
104 @@ -107,6 +112,6 @@ align_right_cmt_span        = 8             # align comments span this much in func\r
105  # align_pp_define_span = 8;\r
106  # align_pp_define_gap  = 4;\r
107  \r
108 -# cmt_star_cont                = FALSE\r
109 +cmt_star_cont          = true\r
110  \r
111  # indent_brace         = 0\r
112 -- \r
113 1.7.6.5\r
114 \r