API cleanup: fs.FS-based store access, no *[]DCFStore, contexts on walks #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Current API returns
*[]DCFStore(pointer to slice), hardcodesosfilesystem access, and offers no cancellation. Rework: store construction takes anfs.FS(or a path convenience wrapper), walk/scan takecontext.Context, plain slice returns, errors wrapped with%w. Exact surface follows sneak's pick from the API proposals (tracked in chat 2026-08-30); this issue holds the mechanical cleanup that applies regardless.Done: no pointer-to-slice in the public surface; store parsing testable against
fstest.MapFS; walks cancelable.