r/ProgrammerHumor • • Oct 15 '26

Meme letsMergeThemAll

Post image
5.4k Upvotes

316 comments sorted by

View all comments

Show parent comment

2

u/Worldly-Stranger7814 Oct 15 '26

No, that's not what he described. Maybe ask copilot what "Squash commits and delete source branch on merge" does.

-3

u/rabbit_wizard Oct 15 '26

Please explain how a conflict between two branches target & source can be resolved by squashing commits

2

u/Worldly-Stranger7814 Oct 16 '26

I like how you just make up stuff

1

u/rabbit_wizard Oct 16 '26

Ignorance is bliss :)

3

u/Worldly-Stranger7814 Oct 16 '26

Squash commits is taking all the commits in a feature branch and combining them into one commit into the target branch instead of adding the entire branch’s individual commit history.

There are advantages to either approach so it’s a matter of selecting how detailed you want that commit history.

Squashing doesnt affect conflicts and conflicts need to be resolved whether you squash or not.

0

u/rabbit_wizard Oct 16 '26

The entire issue here isn't the number of commits. It's that once we start merging each feature the next ones will have conflicts.

2

u/Worldly-Stranger7814 Oct 16 '26

You don't need AI to have branch conflicts. AI didn't invent branch conflicts. Branch conflicts are a result of having a VCS that protects you from fucking yourself. They are, in fact, a major part of why you have a VCS.