Re: [PATCH 0/2] Making "git commit" to mean "git commit -a".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]