Dear diary, on Sat, Oct 21, 2006 at 11:40:37AM CEST, I got a letter where Sam Vilain <sam@xxxxxxxxxx> said that... > Ok, I ruined the error message. > > This could also do with some enhancement; if you edit hunks of the > patch, then the numbers in the hunks could be updated so as to not make > the patch abort. Also, if it does abort you should get the option of > undoing everything, or editing the patch again... > > Will try again with this another time. Actually, on current master you can now use internal_commit. My idea was that you internal_commit with the local changes as X, then rollback to HEAD, apply new patch. If you fail at this point, you can do much saner recovery since you can reset the tree and timewarp back to X and save the modified patch at a suitable place. Besides, you can just timewarp the tree back to X (w/o updating HEAD) at this point to recover the changes excluded from the committed patch! I guess timewarping/internal_commit may look like magic to everyone but me so if the above is unclear, just say so and I'll try to be more thorough. :-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/) - 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