mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
docs: user-page rule covers safety, backends and compared; strict section leads with today's behaviour
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
52bb0f467b
commit
9535110f2f
2 files changed
+4
-2
No files matched your search
@@ -71,7 +71,7 @@ Each package's concerns and identifiers: [The packages](docs/content/docs/contri
|
||||
- **Adding or changing a command** follows the cli skill (`.agents/skills/cli/`): its checklist, then its review.
|
||||
- **Adding or changing a shared tool** updates its page and follows Contributing's checklist: `using/toolchains.md` for a toolchain ([Adding a toolchain](docs/content/docs/contributing/extending.md#adding-a-toolchain)), `using/coding-agents.md`'s Supported agents for an agent ([Adding a coding agent](docs/content/docs/contributing/extending.md#adding-a-coding-agent)).
|
||||
- **Docs by reader:** user pages name no repo paths, Go identifiers or message names; How it works explains mechanisms; Contributing has the paths and identifiers ([Writing docs](docs/content/docs/contributing/docs.md#writing-docs)).
|
||||
- **User pages lead with doing:** in `getting-started/` and `using/`, a task shows its command, and prose never runs to back-to-back paragraphs; one explanatory paragraph is fine, and longer mechanism moves to How it works, linked, every fact kept.
|
||||
- **User pages lead with doing:** in `getting-started/`, `using/`, `safety/`, `backends/` and `compared/`, a task shows its command, and prose never runs to back-to-back paragraphs; one explanatory paragraph is fine, and longer mechanism moves to How it works, linked, every fact kept.
|
||||
- **Extend the owner, don't copy it:** before adding a helper, parser, path, file reader, message or table, find its owner and extend it; a new owner gets a forbidigo rule or a structure-test check only when a second copy would be a bug ([Contributing](docs/content/docs/contributing/structure.md#one-owner-for-each-concern)).
|
||||
- **Edit files with the editor tools,** not `sed`, `awk`, `python`, heredocs or `cat >`.
|
||||
- **Ask first** before anything outward-facing (publishing, releases, repos, pushing) and before deleting anything you didn't create.
|
||||
|
||||
@@ -55,7 +55,9 @@ On an existing VM, devvm ignores `--no-git-protect` and warns you. A `--clone` V
|
||||
|
||||
### VMs that were strict
|
||||
|
||||
In devvm 0.1.0 and 0.1.1-rc.1, `devvm git-protect strict` sets `diff.ignoreSubmodules = all` in the locked `.git/config`, so that `git status` and `git diff` on this machine skip the submodules the VM adds. That can't keep git on this machine out of them. A `.gitmodules` line that the VM writes, such as `ignore = none`, makes `git status` enter a submodule again, and `git add -A`, `git add -u`, `git describe --dirty`, `git diff-index`, `git diff-files`, `git fetch` and `git pull` enter one whatever the setting says, as does `--ignore-submodules` on the command line. So `devvm git-protect` takes only `on` and `off`, and `devvm git-protect strict` is a usage error that points to `devvm clone on`, which keeps the VM's code away from git on this machine.
|
||||
`devvm git-protect` takes only `on` and `off`. `devvm git-protect strict` is a usage error that points to `devvm clone on`, which keeps the VM's code away from git on this machine.
|
||||
|
||||
An earlier devvm's `strict` set `diff.ignoreSubmodules = all` in the locked `.git/config`, so that `git status` and `git diff` on this machine skipped the submodules the VM adds. That couldn't keep git on this machine out of them. A `.gitmodules` line that the VM writes, such as `ignore = none`, makes `git status` enter a submodule again, and `git add -A`, `git add -u`, `git describe --dirty`, `git diff-index`, `git diff-files`, `git fetch` and `git pull` enter one whatever the setting says, as does `--ignore-submodules` on the command line.
|
||||
|
||||
A VM that was made strict shows as `on` at once, in `devvm ls`, `devvm git-protect` and its `--json`, and its locks stay as they are while it runs. The first time devvm finds it stopped, at a launch, at `devvm stop`, or at `devvm clone on`, or when devvm undoes a `devvm clone off` that didn't finish, devvm takes `diff.ignoreSubmodules = all` out of the `.git/config` of the folder's own repo and of each nested repo the VM protected, unlocking each file for the moment and locking it again. Then it records the VM as `on` and says so once, unless you chose `devvm git-protect off` while it ran, which it applies next. `devvm git-protect on` and `off` and `devvm rm` take the setting out the same way, without saying so.
|
||||
|
||||
|
||||
Reference in new issue
Block a user