R219 Commit only pointers and SHA-256 for large data

Off by default

Commit no large data file to a repository; commit only a pointer to it in the data directory (rule 311), with its SHA-256.

Reason

A large file, once in git history, is hard to remove. With a pointer and SHA-256 in the repository, another machine can check that it holds the same data (Art. III §4).

Verification

Violated when a large data file is committed to the repository, or a pointer to data in the data directory is committed without its SHA-256.

Provisions of the constitution it cites

Relations

Parent
R127 Machines and Working Directories
Requires
none
Conflicts with
none

Metadata

ID
219
Revision
3
Kind
rule
Status
trial
Slug
data-pointers-with-sha256
Default level
user
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh