canpolat@programming.devM to Git@programming.devEnglish · 8 months agoDo we think of git commits as diffs, snapshots, and/or histories?jvns.caexternal-linkmessage-square7fedilinkarrow-up19arrow-down10
arrow-up19arrow-down1external-linkDo we think of git commits as diffs, snapshots, and/or histories?jvns.cacanpolat@programming.devM to Git@programming.devEnglish · 8 months agomessage-square7fedilink
minus-squarejdnewmil@lemmy.calinkfedilinkarrow-up6·8 months agoWho we? I think of them as snapshots organized in a directed acyclic graph (DAG). Diff is only a viewing option, or an optional compression implementation detail in packed history files.
minus-squareTechNom (nobody)@programming.devlinkfedilinkEnglisharrow-up3arrow-down1·8 months ago Diff is only a viewing option It isn’t. Git uses 3-way diff/merge algorithm quite liberally behind the scenes.
Who we?
I think of them as snapshots organized in a directed acyclic graph (DAG).
Diff is only a viewing option, or an optional compression implementation detail in packed history files.
It isn’t. Git uses 3-way diff/merge algorithm quite liberally behind the scenes.