On Wed, Aug 10, 2011 at 10:09 AM, Drasko DRASKOVIC <drasko.drasko...@gmail.com> wrote: > On Wed, Aug 10, 2011 at 6:53 AM, Øyvind Harboe <oyvind.har...@zylin.com> > wrote: >> I am genuinely interested in hearing the pros and cons of rebasing >> vs. merging pull requests. >> >> rebasing yields a nice linear history, which I like. Perhaps I'm just >> old fashioned and used to it from Subversion days... > > Hi Øyvind, > as I understand, merging would merge in all ones personal commits to a > personal git tree in a OpenOCD log history once it is is merged on the > master branch. > > Rebase will leave just one commit on the top of the master.
No, I think you are talking about squashing all your new commits into one commit (which /can/ be done during a rebase). Rebasing itself just reorders all commits so that your added commits are nicely on top of the latest head, whereas a merge would possibly have your commits spread down the git history between other commits. > I am opting for the rebase - why do we need many personal commit logs > in the official OpenOCD tree. If you are correcting one of your commits in a second commit (both not applied to master yet) then squashing these together make sense before sending your pull requests. If your work consists of many small, relatively independent (builds and runs at each step) then they should be kept separately, for the sake of later review and bisecting. Cheers, Tormod _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development