Skip to content

feat: adding git boundary for future project scope lnks - #19

Merged
polymorcodeus merged 1 commit into
mainfrom
gitboundary
Aug 18, 2026
Merged

feat: adding git boundary for future project scope lnks#19
polymorcodeus merged 1 commit into
mainfrom
gitboundary

Conversation

@polymorcodeus

Copy link
Copy Markdown
Owner

Changes:

• internal/gitboundary — new package with ResolveGitRoot and IsInsideGitRepo , uses git rev-parse --show-toplevel
with context timeouts; handles symlinks and /var vs /private path resolution.
• service/add.go — rejects paths inside a git repo with ErrInsideGitRepo .
• service/project_add.go + cmd/root.go — added lnk project add stub; validates the path is inside a git repo, then
returns ErrProjectScopeNotImplemented .
• service/doctor.go — added cross-scope scan that flags common/host tracked paths living inside a git repo as a
cross-scope ScopeResult.
• internal/lnkerror/error.go — added ErrInsideGitRepo , ErrOutsideGitRepo , ErrProjectScopeNotImplemented .
• Tests added for gitboundary, add rejection, project add stub, and doctor cross-scope detection.

make check passes (fmt, vet, lint, unit tests, integration tests).

@polymorcodeus polymorcodeus self-assigned this Aug 18, 2026
@polymorcodeus
polymorcodeus merged commit 695f574 into main Aug 18, 2026
4 checks passed
@polymorcodeus
polymorcodeus deleted the gitboundary branch August 18, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant