Warm-up · from “The big picture of Git architecture”
What is porcelain?
What is porcelain?
No notes: write what you remember, then check. Recalling before reading is what makes it stick.
The problem
If a project has 1,000 unchanged files, does a new commit duplicate all of their contents? Investigate the difference between a logical snapshot and physical storage.
After this lesson you can
Explain snapshot semantics.
Identify shared objects across commits.
Distinguish stored state from computed differences.
Key terms
Full glossarySay what each term means, then open it to check.
Object ID · preview, covered in lesson 5
Hash-based identity of a serialized Git object.
Blob · preview, covered in lesson 5
Object storing file contents without a filename.
Visual mental model
- Commit A
- Tree A
- Shared blobb.txt
- Tree B
- Commit B
Build the mental model
A commit describes a complete project tree, not merely a list of edits to apply. A tree refers to blob objects for contents and other trees for directories. Unchanged content can reuse the same object ID across many snapshots. Changing a file normally creates a different blob and changes the trees along its path, while unaffected objects can be shared.
Computed in your browser with the same rule Git uses.
Under the hood
A diff is computed by comparing two states. Git may also compress stored objects using deltas in packfiles, but that is a physical encoding choice, not a change to the logical snapshot model. Other version control systems differ in how they represent and reconstruct versions; avoid assuming every older system uses the same storage design.
Common mistake · important nuance
A snapshot is not a full independent copy of every file on disk. Reuse is by object identity, not filename.