From: Johannes Schindelin Date: Wed, 29 Nov 2006 23:53:10 GMT Subject: Re: [PATCH 0/2] Making "git commit" to mean "git commit -a". Message-ID: In-Reply-To: <87ejrlvn7r.wl%cworth@cworth.org> Hi, On Wed, 29 Nov 2006, Carl Worth wrote: > [As an aside, the situation of independent changes being mixed in a > working tree is not always so lucky as to be cleanly separated into > disjoint file sets. When it's not, I have to disentangle them. Now, the > index could really help during this operation too, but we would need > better tools than update-index which only works on a per-file basis. > Something that let me easily select chunks of the patch would be really > nice.] I regularly do something like $ git diff [file] > a1.patch $ vi a1.patch [edit out the chunks I want to commit] $ git apply -R < a1.patch $ git commit [file] $ git apply < a1.patch Seems a little bit convoluted, but works... Hth, Dscho