I have a branch of local project changes based on a foreign upstream branch. The branch has got increasingly hard to maintain as the changes age and the upstream branch changes. In particular all of the upstream files were reformatted (whitespace) recently. Rebases end up with a lot of conflicts that I continually have to reapply. Since I know the changes are good what I would like to do is generate a clean set of HEAD commits that is then easy to rebase. I am considering doing this by generating a patch between upstream and my branch and then applying the patch to a branch of upstream and then finally committing all the changes on a subsystem basis. Obviously a bit of manual work, my question is - is there an easier way to do this?
Not tried anything yet other than git pull --rebase upstream upstream-branch
continually creates conflicts
It's open source so I can point you directly at the code! https://github.com/ArduPilot/ChibiOS.svn/pull/1
https://github.com/ArduPilot/ChibiOS.svn/tree/stable_21.11.x is a git mirror of the stable branch of a svn repository. The pull request is all the changes which are also mixed in with fixes to the formatting