R287 Keep each main checkout directly under the directory for main checkouts

Off by default

Keep each repository’s main checkout at ~/src/<repo>, in a directory named after the repository.

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. What else the directory may hold is rule 288’s matter.

Violated when a repository’s main checkout is not directly under ~/src, 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
287
Revision
1
Kind
rule
Status
trial
Slug
main-checkouts-dir
Default level
user
Constitution revisions
>=1
Check
none
Default
off
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh