mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 14:33:17 -10:00
devvm git-protect shows a folder's VM's .git protection (on, strict, off, or clone for a --clone VM) and changes it while the VM is stopped. On and strict lock .git as it is now, reporting what a lock can't cover as a new VM does; strict also sets diff.ignoreSubmodules=all in the locked .git/config, which on and off take out; off unlocks. Locks need macOS. - gitprotect: Mode, Set, ignoreSubmodules; NewVM and Check share protect (new, on, check); strict counts as on for launches and rm. - Messages: no_vm_git_protect, git_protect_failed, git_protect_running, git_protect_on_needs_macos, git_protect_clone, git_config_failed, git_locked, git_locked_strict, git_lock_later, git_unlocked; git_protect_flag_ignored names devvm git-protect off. - Tests: TestSet, TestSetStrictFails, TestSetLinuxAndNoGit; testdata/script/git_protect.txtar (project.bats strict and git-protect-waits cases). e2e project: waits for stop, strict, off/on, refused off macOS. - Docs: git-protection.md (turning it on or off, strict), commands.md, CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>