Re: [PATCH 3/5] Fix hiding a message while some citations are shown in notmuch-show...
[notmuch-archives.git] / ac / ae631b264f22fe5be21386f989b57ed52ed208
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 377D5429E2A\r
6         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 10:10:22 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 8hAJA2-KpaNQ for <notmuch@notmuchmail.org>;\r
17         Wed, 15 Jun 2011 10:10:20 -0700 (PDT)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id F06D9431FB6\r
22         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 10:10:19 -0700 (PDT)\r
23 Received: by fxm8 with SMTP id 8so608784fxm.26\r
24         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 10:10:18 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:subject:in-reply-to:references\r
27         :user-agent:date:message-id:mime-version:content-type;\r
28         bh=wV2CPMBAOsVKUpH3QEY3LuN3SY4FDA4/JEyrR1FlvuQ=;\r
29         b=NauY/i9aCUh5DNMF7/InjuFRcs06y2/633nBdu2K/6HxlHP4GUqRDV+PFI71RL10u6\r
30         cvNK5iVvmMDkW2Gay0KmkGyFbOasYryrLZiPO3VhLq1OaXgfD/RtzQOi00vYrSbG29dk\r
31         8XEj9iB1uOWuocudbHuGF9OFHfqB2azhge92Q=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
34         :mime-version:content-type;\r
35         b=OSnKQfMsIkkrU4Twm33R9oK54L6pLnKSZ4IbOS+35Qj59xdnADu5VipkvwDFqWtQqT\r
36         5WUydiNGPyUbU3AMZJPNIdN7Hk5vAsycsrdMatoyzL0SyHyfXFb0pTIkv2eTeTxumels\r
37         EZwlOuBXxqLufONWwpGhc7eyphVO3MVzCAAXU=\r
38 Received: by 10.223.24.134 with SMTP id v6mr860357fab.146.1308157818445;\r
39         Wed, 15 Jun 2011 10:10:18 -0700 (PDT)\r
40 Received: from localhost ([91.144.186.21])\r
41         by mx.google.com with ESMTPS id o23sm341726faa.33.2011.06.15.10.10.16\r
42         (version=TLSv1/SSLv3 cipher=OTHER);\r
43         Wed, 15 Jun 2011 10:10:17 -0700 (PDT)\r
44 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
45 To: Carl Worth <cworth@cworth.org>, notmuch@notmuchmail.org\r
46 Subject: Re: [PATCH 3/5] Fix hiding a message while some citations are shown\r
47         in notmuch-show view.\r
48 In-Reply-To: <87fwnbf2rv.fsf@yoom.home.cworth.org>\r
49 References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>\r
50         <1306361416-5019-4-git-send-email-dmitry.kurochkin@gmail.com>\r
51         <87oc2qa07g.fsf@yoom.home.cworth.org> <87k4depfyj.fsf@gmail.com>\r
52         <87lixu9z5b.fsf@yoom.home.cworth.org> <87hb8ipeb0.fsf@gmail.com>\r
53         <87ipsy9sue.fsf@yoom.home.cworth.org> <87d3j5pxk5.fsf@gmail.com>\r
54         <87k4ddcfnx.fsf@yoom.home.cworth.org> <877h9dp29t.fsf@gmail.com>\r
55         <87sjrbkx3j.fsf@yoom.home.cworth.org> <8739jbqiid.fsf@gmail.com>\r
56         <87fwnbf2rv.fsf@yoom.home.cworth.org>\r
57 User-Agent: Notmuch/0.5-237-gf6d8cdb (http://notmuchmail.org) Emacs/23.3.1\r
58         (x86_64-pc-linux-gnu)\r
59 Date: Wed, 15 Jun 2011 21:10:49 +0400\r
60 Message-ID: <87sjrb10me.fsf@gmail.com>\r
61 MIME-Version: 1.0\r
62 Content-Type: text/plain; charset=us-ascii\r
63 X-BeenThere: notmuch@notmuchmail.org\r
64 X-Mailman-Version: 2.1.13\r
65 Precedence: list\r
66 List-Id: "Use and development of the notmuch mail system."\r
67         <notmuch.notmuchmail.org>\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
71 List-Post: <mailto:notmuch@notmuchmail.org>\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
74         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
75 X-List-Received-Date: Wed, 15 Jun 2011 17:10:22 -0000\r
76 \r
77 On Wed, 15 Jun 2011 10:00:36 -0700, Carl Worth <cworth@cworth.org> wrote:\r
78 > On Wed, 15 Jun 2011 18:25:14 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
79 > > I know you prefer tests to go before patches and I agree with that.\r
80\r
81 > Great!\r
82\r
83 > > But most of the time I do tests after coding.\r
84\r
85 > Yes, I do that order almost exclusively as well.\r
86\r
87 > > I do not know an easy way to reorder patches in git.  (Also I do not\r
88 > > know how to amend an old patch\r
89\r
90 > Fortunately, git has a great feature here for both use cases, (git\r
91 > rebase -i). Here's the simple recipe:\r
92\r
93 >     * Find a bug, fix a bug, commit\r
94\r
95 >     * Write a test case, commit\r
96\r
97 >     * Run the following command:\r
98\r
99 >       git rebase -i origin/master\r
100\r
101 > At this point you'll be presented with an editor window giving one line\r
102 > for each commit that you have made since origin/master. You can reorder\r
103 > these lines however you'd like. When you save and exit the editor, the\r
104 > commits will be applied in the order you saved.\r
105\r
106 > If there are any conflicts due to the re-ordering, then git rebase will\r
107 > stop and tell you what to do, which will be:\r
108\r
109 >     * Resolve the conflict\r
110\r
111 >     * Run "git add" on the files you edited\r
112\r
113 >     * Run "git rebase --continue"\r
114\r
115 > Also, back when editing the original list of commits, you can change the\r
116 > word "apply" next to any particular commit to change what happens when\r
117 > applying it. If you change that to "reword" you'll be given an editor\r
118 > window to edit the commit message. If you use "edit" then you'll be\r
119 > dropped to a shell where you can:\r
120\r
121 >     * Edit the code\r
122\r
123 >     * Test as necessary\r
124\r
125 >     * Run "git commit --amend"\r
126\r
127 >     * Run "git rebase --continue"\r
128\r
129 > I absolutely love "git rebase -i". It's one of my favorite\r
130 > user-interface features in git.\r
131\r
132 \r
133 Thanks for this.  I did not know about interactive mode in rebase.\r
134 \r
135 This is some sort of replacement for darcs amend (which allows editing\r
136 any patch, not just the last one).\r
137 \r
138 > > wish more darcs features in git.\r
139\r
140 > I don't know about "git rebase -i", but I think I heard that "git add\r
141 > -i", (interactively add some portions of the dirty working tree to the\r
142 > index to be committed). I think the menu-based interface of "git add -i"\r
143 > is particularly clunky. But I love the trimmed-down interface of "git\r
144 > add -p" which simply prompts one-patch-hunk-at-a-time for pieces to add\r
145 > to the next commit. It even supports splitting a hunk, (or even manually\r
146 > editing the patch to trim it down!). It's pretty slick stuff.\r
147\r
148 \r
149 Yes, "add -i" is ugl... confusing, but "add -p" is very nice.  A great\r
150 feature of darcs picked up by git.\r
151 \r
152 > So there are some git tips that might be useful.\r
153\r
154 \r
155 They will be useful indeed.  Thanks!\r
156 \r
157 Regards,\r
158   Dmitry\r
159 \r
160 > > Thanks.\r
161\r
162 > You're quite welcome. Thanks for all the great work. Please keep it up!\r
163\r
164 > -Carl\r
165\r
166 > -- \r
167 > carl.d.worth@intel.com\r