Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style
authorDavid Bremner <david@tethera.net>
Sat, 17 Dec 2011 22:50:10 +0000 (18:50 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:59 +0000 (09:40 -0800)
60/98d5565fcfd6d2adb0441ceda494a30e0d4ccc [new file with mode: 0644]

diff --git a/60/98d5565fcfd6d2adb0441ceda494a30e0d4ccc b/60/98d5565fcfd6d2adb0441ceda494a30e0d4ccc
new file mode 100644 (file)
index 0000000..21d8cb5
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <bremner@unb.ca>\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 559D8431FD0\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 14:50:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\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 9nfRZ+DIqOHk for <notmuch@notmuchmail.org>;\r
+       Sat, 17 Dec 2011 14:50:14 -0800 (PST)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 9488A431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 17 Dec 2011 14:50:14 -0800 (PST)\r
+Received: from zancas.localnet\r
+       (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [156.34.79.193]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBHMoAXs006364\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Sat, 17 Dec 2011 18:50:13 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.77)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1Rc350-0001Uc-AF; Sat, 17 Dec 2011 18:50:10 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] uncrustify.cfg: initial support for notmuch coding style\r
+In-Reply-To: <1324135695-15487-1-git-send-email-david@tethera.net>\r
+References: <1324135695-15487-1-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.10.2+103~gd823dc2 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 17 Dec 2011 18:50:10 -0400\r
+Message-ID: <87aa6qdd99.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Sat, 17 Dec 2011 22:50:15 -0000\r
+\r
+On Sat, 17 Dec 2011 11:28:15 -0400, David Bremner <david@tethera.net> wrote:\r
+> +#\r
+> +# sample usage:\r
+> +#        uncrustify --replace -c uncrustify.cfg foo.c\r
+\r
+There are several different possible workflows, here is what I have\r
+found convenient.  To simplify the example, suppose we have a single\r
+patch, and no uncommitted changes.\r
+\r
+I like to do this one file at a time; I'm not sure there is really any\r
+good reason.\r
+\r
+1) $ uncrustify --replace -c uncrustify.cfg a.c\r
+\r
+2) Now carefully look at the changes and selectively add the ones you\r
+   agree with. I use magit (in emacs) for this. Git citool can also\r
+   stage a line at a time.\r
+\r
+3) $ git commit --amend\r
+\r
+4) $ git reset --hard # blow away any changes you didn't agree with.\r
+                   # remember, no uncommited changes to start with \r
+                   \r
+Now repeat for each other c/c++/.h file your patch modifies.\r
+\r
+In principle you could do something similar to produce "Style cleanups\r
+for file a.c" commits by doing a regular commit in step 3.\r
+\r
+d\r
+\r
+\r