You've already forked agentic-coding-workflow
feat(workspace): WorktreeService with acquire/release state machine
This commit is contained in:
@@ -118,6 +118,13 @@ func (t *fakeTx) GetWorktreeByID(_ context.Context, id uuid.UUID) (*Worktree, er
|
||||
}
|
||||
return nil, &errsNotFound{}
|
||||
}
|
||||
func (t *fakeTx) GetWorktreeByIDForUpdate(_ context.Context, id uuid.UUID) (*Worktree, error) {
|
||||
if w, ok := t.f.wts[id]; ok {
|
||||
cp := *w
|
||||
return &cp, nil
|
||||
}
|
||||
return nil, &errsNotFound{}
|
||||
}
|
||||
func (t *fakeTx) InsertWorktree(_ context.Context, w *Worktree) (*Worktree, error) {
|
||||
cp := *w
|
||||
t.f.wts[w.ID] = &cp
|
||||
|
||||
Reference in New Issue
Block a user