R128 Keep each main checkout directly under the root for main checkouts

On by default

Superseded by R287 Keep each main checkout directly under the directory for main checkouts.

Keep each repository’s main checkout in a directory named after the repository, directly under the root the jurisdiction designates for main checkouts.

Reason

With one layout on every machine, people and agents find a repository’s checkout from its name alone (Art. III §4).

Verification

A main checkout is a clone whose .git is a directory; a worktree’s .git is a file, so a worktree is not one. The jurisdiction designates the root, for example in a rule of a lower layer. What else the root may hold is rule 216’s matter.

Violated when a repository’s main checkout is not directly under the root, or its directory is not named after the repository.

Provisions of the constitution it cites

Relations

Parent
R127 Machines and Working Directories
Requires
none
Conflicts with
none

Metadata

ID
128
Revision
3
Kind
rule
Status
superseded
Slug
main-checkouts-root
Default level
user
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh