Menu

The forge said yes and did something else
📰

The forge said yes and did something else

DEV Community: gitlab·Matt Cockayne·1 day ago
#shzPzhqR
#devtogitlab#devto#dev#merge#gitlab
Long article (1593 words) — no AI summary yet.
Reading 0:00
15s threshold

I asked GitLab's API to merge a branch with squash=false , keep my commits as they are, in other words. It answered 200 OK and squashed the lot into one.

To be fair to GitLab, it was doing what the project's settings told it to, and I suspect I'd have done much the same in its shoes. It just didn't think to mention it... A 200 and a squash commit I hadn't asked for is a bit like a courier texting "delivered" with a photo of somebody else's doorstep.

Why I cared which commit merged

I don't squash, ever. A branch's commits are the history, and I'd much sooner keep the logical ones than have the forge flatten them into a single blob on the way in (it's in the standing instructions my coding agents work from, in bold, near the top, so I'm fairly committed to it).

Those agents are the other half of this. Most of my code these days is written by agent sessions working on branches, and nothing lands until I've reviewed the merge request. But a review is a promise about the commits I read.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.