Julia Evans on Nostr: there's something weird about git branches that "a branch is just a reference to a ...
there's something weird about git branches that "a branch is just a reference to a commit" does not capture and I've been struggling with it for weeks
like in this diagram I think most people would say that there are 3 branches (corresponding to the 3 commits at the top of the diagram), though technically in git you could have 0, 3, or 100 branches here, and it's not labelled so you have no way to know how many branches there are
(please don't try to explain branches to me ty)
Published at
2023-11-21 00:44:23Event JSON
{
"id": "debac086634dd3b9ed08311a7e2de8ab6ea6b43439a2ebaf288d9d18b22bc7ab",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1700527463,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/111445767832607539",
"activitypub"
]
],
"content": "there's something weird about git branches that \"a branch is just a reference to a commit\" does not capture and I've been struggling with it for weeks\n\nlike in this diagram I think most people would say that there are 3 branches (corresponding to the 3 commits at the top of the diagram), though technically in git you could have 0, 3, or 100 branches here, and it's not labelled so you have no way to know how many branches there are\n\n(please don't try to explain branches to me ty)\n\nhttps://cdn.masto.host/socialjvnsca/media_attachments/files/111/445/767/476/151/928/original/901f403e3fbe5397.png",
"sig": "f5f94a17d78f2242fb75ec0dd9f1e0f1e71007814b961c31ed68197a9ab2e9a279d8506310c676dc38cf0442ecccea6c08c7c42805408aafb39a7de12d610dcf"
}