refactor(init): extract repo helpers (#518) #524
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
fugitive
good first issue
help wanted
invalid
question
v0.1.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/forge.nvim!524
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/init-repo-helpers-518"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
lua/forge/init.luastill owned current-repo, scope, and remote web URL helpers, so internal callers and backend adapters had to reach through the top-levelforgefacade for repo resolution.Solution
Extract those helpers into
lua/forge/repo.lua, delegate the top-level API to that module, update internal callers and backends to depend onforge.repodirectly, and refresh the compose and submission specs to stub the new dependency boundary.