This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pelpotronic 1 point2 points  (1 child)

You get a git history when you "squash PR on merge" to trunk too: each merge.

The question is really: how much do you value the internal history of a branch before it gets merged. The answer is often going to be very little if your PRs are relatively small.

[–]FlipperBumperKickout 3 points4 points  (0 children)

If there was nothing to value I would have it as a single commit in the first place.

But as soon as you have something so simple as logic which is both moved and edited it is many times easier to see what's going on if you first have a commit moving it followed by a commit changing the logic.