Hacker News new | ask | show | jobs
by Liskni_si 159 days ago
You do if you find yourself in a team where PRs are squash-merged. :-(
1 comments

Does that happen on merge or before PR creation? I thought the setting only applied it when you hit the merge button, so you'd still have commits prior to the merge. Though that won't help if someone pre-squashes them :s
Happens on merge, sure, but the end result is that you kinda lose the individual commits. You can still find them in the PR, but you won't see them in the git history, so git blame will just point you to the one big squashed commit.

If you, however, open a chain of 8 PRs, and merge them in the right order, the individual commits will be persisted in the git history. Potentially worth it if you like to have a "story" of several commits...

As the mythical doctor once said, "don't do that". My sympathies if you're on a team that requires it.