logoalt Hacker News

LordDragonfangyesterday at 6:01 AM2 repliesview on HN

This is so strange, because, at a low level, a branch isn't even a "thing" in git. There is no branch object type in git, it's literally just a pointer to a commit, functionally no different from a tag except for the commands that interact with it.


Replies

fc417fc802yesterday at 9:21 AM

Meanwhile mercurial has bookmarks. TBF I'm not sure when it got those but they've been around forever at this point. The purpose is served.

I think there are (or perhaps were) some product issues regarding the specifics of various workflows. But at least some of that is simply the inertia of entrenched workflows and where there are actual downsides the (IMO substantial) advantages need to be properly weighed against them.

Personally I think it just comes down to the status quo. Git is popular because it's popular, not because it's noticably superior.

show 1 reply
Tarq0nyesterday at 9:49 AM

That's the definition of a tree though. Everything has a parent, no cycles allowed.