Merge PR as multiple commits ?

An area for discussing new ideas and additions to Oolite.

Moderators: another_commander, winston

Post Reply
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 780
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Merge PR as multiple commits ?

Post by Lone_Wolf »

I have been building trunk builds for several projects for years and also bisected them to help with troubleshooting.


Over time I have noticed a pattern : some projects squash PRs into 1 commit, others merge the commits that make up the PR to master as individual commits .

The 2nd method makes troubleshooting much easier, but Oolite appears to use the first method.
OS : Arch Linux 64-bit - rolling release

From: The Netherlands, Europe

OXPs : My user page (needs updating)

Retired, occasionally active
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 7138
Joined: Wed Feb 28, 2007 7:54 am

Re: Merge PR as multiple commits ?

Post by another_commander »

We use both actually. PRs with a few, clear-cut commits can be merged as multi, while PRs consisting of many commits, especially when those are WIP ones with corrections, reverts etc., are merged squashed. Each PR is assessed individually regarding its merge method.

The idea is that when a PR gets merged, the commits inserted (and the resulting commit history) maintain a logical , easy to follow flow.
Post Reply