Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 29, 2006, 23:53 UTC
- Message-ID
- <Pine.LNX.4.63.0611300050180.30004@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <87ejrlvn7r.wl%cworth@cworth.org>
Hi,
On Wed, 29 Nov 2006, Carl Worth wrote:
Show 7 quoted lines
> [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