this post was submitted on 18 Feb 2025
353 points (96.1% liked)

Programmer Humor

25773 readers
2109 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] bleistift2@sopuli.xyz 5 points 6 months ago (1 children)

What could possibly be preferrable to git switch -c <branchname>?

[–] nogooduser@lemmy.world 2 points 6 months ago (1 children)

It’s not the mechanism of branching that I prefer.

It’s the fact that Mercurial tags the commit with the name of the branch that it was committed to which makes it much easier to determine whether a commit is included in your current branch or not.

Also, Mercurial has a powerful revision search feature built in which I love (https://www.mercurial-scm.org/doc/hg.1.html#revisions).

[–] bleistift2@sopuli.xyz 3 points 6 months ago

I admit that I have been bitten by the fact that commits don’t have a “true home branch”.