Skip to content

feat: project resolver + pattern infrastructure - #20

Merged
polymorcodeus merged 1 commit into
mainfrom
resolver
Aug 19, 2026
Merged

feat: project resolver + pattern infrastructure#20
polymorcodeus merged 1 commit into
mainfrom
resolver

Conversation

@polymorcodeus

@polymorcodeus polymorcodeus commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Staging for next release

Changes:

  • internal/resolver - ResolveProjectID(ctx, dir) reads origin via git remote get-url origin and
    NormalizeRemoteURL strips scheme/auth/port, normalizes SSH host:path to host/path , strips .git , and lowercases.
  • internal/patterns - Load reads .lnkinclude (missing file = empty list); Match inverts go-gitignore semantics
    so a match means include.
  • Match uses gitignore.ParsePattern + gitignore.NewMatcher , splitting paths on / and checking both file and
    directory interpretations.
  • Added go-git/go-git/v5/plumbing/format/gitignore dependency.
  • Unit tests cover URL normalization matrix, local repo without origin, pattern include/exclude/negation, last-match-
    wins, ** , ?, directory patterns, and character classes.

@polymorcodeus polymorcodeus self-assigned this Aug 19, 2026
@polymorcodeus
polymorcodeus merged commit b212ff3 into main Aug 19, 2026
4 checks passed
@polymorcodeus
polymorcodeus deleted the resolver branch August 19, 2026 04:35
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