Julia Evans on Nostr: another thing I'm trying to figure out about git is that -- many people think of ...
another thing I'm trying to figure out about git is that -- many people think of commits as being diffs. Technically in git commits are snapshots.
but I can't tell if it's important to understand that git commits are "really" implemented as snapshots instead of diffs. Does it actually matter? Why?
(commits are treated in different ways by diff commands: `git cherry-pick` treats a commit as a diff, `git checkout` treats it as a snapshot, `git log` treats it as a history)
(1/?)
Published at
2023-11-21 14:24:51Event JSON
{
"id": "167c440804bae6f5b1c600ffd86636ec61d67861c1db28a6e9ad359c1c2f0429",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1700576691,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/111448994043705343",
"activitypub"
]
],
"content": "another thing I'm trying to figure out about git is that -- many people think of commits as being diffs. Technically in git commits are snapshots. \n\nbut I can't tell if it's important to understand that git commits are \"really\" implemented as snapshots instead of diffs. Does it actually matter? Why?\n\n(commits are treated in different ways by diff commands: `git cherry-pick` treats a commit as a diff, `git checkout` treats it as a snapshot, `git log` treats it as a history)\n\n(1/?)",
"sig": "3efec27c1bd1674e4353e0693fabc572859698d679886bb72e856b3c0ecde651c67bc4fe3c00c2cb732417a9e917888a4cd871ee1cd34fa750980b868d8e5e2b"
}