Add project scope for repo-local dotfiles - #23
Merged
Conversation
polymorcodeus
marked this pull request as draft
August 20, 2026 21:03
polymorcodeus
marked this pull request as ready for review
August 20, 2026 23:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds project scope: manage repo-local dotfiles (.vscode/, .crush/, AGENTS.md) that live inside a git repository, backed up to the lnk repo but not committed upstream. Completes the project-scope work ahead of the v2.0.0 release.
What's new
project remove(restore files, drop storage) andproject forget(unlink, keep storage), plus reconcile-on-untrack and aproject synccommand that reconciles patterns, live files, and storage.project add/untrack --globalmanage the repo-root .lnkinclude; local!patterns negate a global include per project.project list --alllists stored projects;lnk doctorreports stored projects, unmarked storage, and empty project dirs.Usage
project init/add <pattern>/untrack [--keep] <pattern>project push [--force]/sync [--dry-run] [--prune-deletions] [--force]project restore [--dry-run] [--force]/pull [--force]project remove/forgetproject list [--all]Behavior changes / guardrails
!pathor--force), avoiding a committed file becoming a machine-local symlink.project untrackreconciles by default (mirrorslnk remove);--keeprestores edit-only behavior.syncreports them, and only--prune-deletionsremoves their stored copies.local/<name>-<hash>storage ID.Testing
make checkruns fmt, vet, lint, unit, and integration suites; all green.