From: Linus Torvalds Date: Thu, 18 Aug 2005 23:04:27 GMT Subject: RE: git-whatchanged -p anomoly? Message-ID: In-Reply-To: On Thu, 18 Aug 2005, Luck, Tony wrote: > > Yes I had a failed merge ... I thought that I had cleaned up from it, but > clearly I hadn't. Bother. The simplest way of cleaning up after a failed merge is just a simple "git reset", which will also tell you if you need to perhaps clean up afterwards (equally easily done with "git checkout -f" if you just want to blow all the changes away. > I guess I have a bit of tree maintenance to do ... But I think that it > should be easy ... I can just step "test" back to before I merged in > the Alex patch. Redo the Alex patch properly. Then re-merge all the > branches that happened after this. Followed by crossing my fingers and > running "git prune". > > Maybe I'll try all that in a *copy" of my GIT tree first! Yup. Think of it as a good exercise in git ;) Btw, it's a shame that git has all these "git rebase" etc helper scripts, which rebase whole series of patches, but the simple "git re-do" which basically ends up being a git-diff-tree -p $old | git-apply --index && git commit --reedit=$old doesn't have a nice helper script. Anyway, the easiest approach may be to just do git branch new-test-branch git format-patch -o patchdir --mbox git checkout new-test-branch .. edit the individual patches in patchdir/* to taste .. cat git-applymbox patchdir/* | git-applymbox or similar. Linus