Re: How to split a patch

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

 



El 28/1/2008, a las 10:47, Matthieu Moy escribió:

"Paolo Ciarrocchi" <paolo.ciarrocchi@xxxxxxxxx> writes:

Yes it helps but I still wonder whether thereis a "simpler" way to achive that.
Is it possible to split a patch selecting the hunk in git gui or any
other graphical
tool?

You can apply the patch without commiting it, and them make several
partial commits, by right-click "stage hunk for commit" in git-gui.

Or "git add --interactive", which isn't GUI but is a similar idea in command line form.

And in case you've already applied the patch you can do a "git reset HEAD^"; this moves your HEAD back by one commit, puts the index back the way it was, but leaves the changes in your working tree. Then you stage your hunks and commit them like Matthieu says.

Cheers,
Wincent

-
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]

  Powered by Linux