Flat search and threaded views
[notmuch-archives.git] / 40 / 62487b469cb89fe03dbb5f196a7343ea88a80a
1 Return-Path: <cworth@cworth.org>\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 14D32429E26\r
6         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 10:00:44 -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.01\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5\r
12         tests=[T_MIME_NO_TEXT=0.01] 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 744yHln+YDcH for <notmuch@notmuchmail.org>;\r
16         Wed, 15 Jun 2011 10:00:43 -0700 (PDT)\r
17 Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2])\r
18         by olra.theworths.org (Postfix) with ESMTP id 7A208431FB6\r
19         for <notmuch@notmuchmail.org>; Wed, 15 Jun 2011 10:00:43 -0700 (PDT)\r
20 Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
21         by arlo.cworth.org (Postfix) with ESMTP id 3DF7F29A4E5;\r
22         Wed, 15 Jun 2011 10:00:42 -0700 (PDT)\r
23 Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
24         id 2C44C254154; Wed, 15 Jun 2011 10:00:42 -0700 (PDT)\r
25 From: Carl Worth <cworth@cworth.org>\r
26 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
27 Subject: Re: [PATCH 3/5] Fix hiding a message while some citations are shown\r
28         in notmuch-show view.\r
29 In-Reply-To: <8739jbqiid.fsf@gmail.com>\r
30 References: <1306361416-5019-1-git-send-email-dmitry.kurochkin@gmail.com>\r
31         <1306361416-5019-4-git-send-email-dmitry.kurochkin@gmail.com>\r
32         <87oc2qa07g.fsf@yoom.home.cworth.org> <87k4depfyj.fsf@gmail.com>\r
33         <87lixu9z5b.fsf@yoom.home.cworth.org> <87hb8ipeb0.fsf@gmail.com>\r
34         <87ipsy9sue.fsf@yoom.home.cworth.org> <87d3j5pxk5.fsf@gmail.com>\r
35         <87k4ddcfnx.fsf@yoom.home.cworth.org> <877h9dp29t.fsf@gmail.com>\r
36         <87sjrbkx3j.fsf@yoom.home.cworth.org> <8739jbqiid.fsf@gmail.com>\r
37 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1\r
38         (i486-pc-linux-gnu)\r
39 Date: Wed, 15 Jun 2011 10:00:36 -0700\r
40 Message-ID: <87fwnbf2rv.fsf@yoom.home.cworth.org>\r
41 MIME-Version: 1.0\r
42 Content-Type: multipart/signed; boundary="=-=-=";\r
43         micalg=pgp-sha1; protocol="application/pgp-signature"\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Wed, 15 Jun 2011 17:00:44 -0000\r
57 \r
58 --=-=-=\r
59 Content-Transfer-Encoding: quoted-printable\r
60 \r
61 On Wed, 15 Jun 2011 18:25:14 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmai=\r
62 l.com> wrote:\r
63 > I know you prefer tests to go before patches and I agree with that.\r
64 \r
65 Great!\r
66 \r
67 > But most of the time I do tests after coding.\r
68 \r
69 Yes, I do that order almost exclusively as well.\r
70 \r
71 > I do not know an easy way to reorder patches in git.  (Also I do not\r
72 > know how to amend an old patch\r
73 \r
74 Fortunately, git has a great feature here for both use cases, (git\r
75 rebase -i). Here's the simple recipe:\r
76 \r
77     * Find a bug, fix a bug, commit\r
78 \r
79     * Write a test case, commit\r
80 \r
81     * Run the following command:\r
82 \r
83         git rebase -i origin/master\r
84 \r
85 At this point you'll be presented with an editor window giving one line\r
86 for each commit that you have made since origin/master. You can reorder\r
87 these lines however you'd like. When you save and exit the editor, the\r
88 commits will be applied in the order you saved.\r
89 \r
90 If there are any conflicts due to the re-ordering, then git rebase will\r
91 stop and tell you what to do, which will be:\r
92 \r
93     * Resolve the conflict\r
94 \r
95     * Run "git add" on the files you edited\r
96 \r
97     * Run "git rebase --continue"\r
98 \r
99 Also, back when editing the original list of commits, you can change the\r
100 word "apply" next to any particular commit to change what happens when\r
101 applying it. If you change that to "reword" you'll be given an editor\r
102 window to edit the commit message. If you use "edit" then you'll be\r
103 dropped to a shell where you can:\r
104 \r
105     * Edit the code\r
106 \r
107     * Test as necessary\r
108 \r
109     * Run "git commit --amend"\r
110 \r
111     * Run "git rebase --continue"\r
112 \r
113 I absolutely love "git rebase -i". It's one of my favorite\r
114 user-interface features in git.\r
115 \r
116 > wish more darcs features in git.\r
117 \r
118 I don't know about "git rebase -i", but I think I heard that "git add\r
119 =2Di", (interactively add some portions of the dirty working tree to the\r
120 index to be committed). I think the menu-based interface of "git add -i"\r
121 is particularly clunky. But I love the trimmed-down interface of "git\r
122 add -p" which simply prompts one-patch-hunk-at-a-time for pieces to add\r
123 to the next commit. It even supports splitting a hunk, (or even manually\r
124 editing the patch to trim it down!). It's pretty slick stuff.\r
125 \r
126 So there are some git tips that might be useful.\r
127 \r
128 > Thanks.\r
129 \r
130 You're quite welcome. Thanks for all the great work. Please keep it up!\r
131 \r
132 =2DCarl\r
133 \r
134 =2D-=20\r
135 carl.d.worth@intel.com\r
136 \r
137 --=-=-=\r
138 Content-Type: application/pgp-signature\r
139 \r
140 -----BEGIN PGP SIGNATURE-----\r
141 Version: GnuPG v1.4.11 (GNU/Linux)\r
142 \r
143 iEYEARECAAYFAk345TQACgkQ6JDdNq8qSWhO7QCgnJVRdO2iv7nZMLfnmR27Dz46\r
144 kuIAoIjCapdf9E9P1fpNmCDqWCtx3MIv\r
145 =CDbc\r
146 -----END PGP SIGNATURE-----\r
147 --=-=-=--\r