Hi, On Thu, 26 Feb 2009, Sverre Rabbelier wrote: > I am currently working on a large set of patches for Melange, and as > such I'm using rebase -i a lot to polish things a bit. I do this > mainly by 'git rebase -i master' from my topic branch, then change on > of the 'pick' lines into an 'edit', and then fix up the commit and > 'git rebase --continue'. Now I notice I'm waiting a lot for 'rebase > -i' to finish picking the first bunch of commits that I didn't change. > Now obviously I couldof done 'git rebase -i <foo>', but then I have > first figure out what the last commit I want to change is. > Would there be a reason to not reset to the last 'pick' commit instead > of to the 'based on' branch (as long as there history is linear)? If > so, what would be the best way to go around and implement this? This code is supposed to do exactly what you want: http://repo.or.cz/w/git/dscho.git?a=blob;f=git-rebase--interactive.sh;h=532f161c1ddce351cf623b096899e0eb057180ca;hb=8394eb1ecee00c2aba9212f3445c42078b41614b#l198 Unfortunately, it seems to be quite broken by all the different directions rebase -i was pulled to, but maybe you see the bug right away. Otherwise, I'll try to reschedule my Git time budget later tonight. Ciao, 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