From: Jeff King Date: Fri, 27 Nov 2009 06:41:07 GMT Subject: Re: [RFC PATCH] {checkout,reset} -p: make patch direction configurable Message-ID: <20091127064107.GC20844@coredump.intra.peff.net> In-Reply-To: <527e9296b638eb4c9993b3fb0d1c6f51b64f4c2c.1258667920.git.trast@student.ethz.ch> On Thu, Nov 19, 2009 at 11:03:57PM +0100, Thomas Rast wrote: > When we implemented the -p mode for checkout, reset and stash, some > discussion revolved around the involved patch direction. > > Make this configurable for reset and checkout with the following > choices: > > index/HEAD other > forward undo addition undo addition > mixed undo addition apply removal > reverse apply removal apply removal > [...] > ISTR that Peff wanted this, and maybe some others. I'm not too > interested because I'm still convinced 'mixed' is the Right Option, > but it was somewhere deep on my todo stack and maybe you like it ;-) Actually, I am pretty happy with the current "discard this hunk" most of the time. It is easy enough to see "you made this change, did you want to get rid of it?". The one exception is during patch editing. Try something simple like: cat >file <file <