You've already forked agentic-coding-workflow
feat(workspace): WorktreeService with acquire/release state machine
This commit is contained in:
@@ -7,6 +7,10 @@ RETURNING *;
|
||||
-- name: GetWorktreeByID :one
|
||||
SELECT * FROM workspace_worktrees WHERE id = $1;
|
||||
|
||||
-- name: GetWorktreeByIDForUpdate :one
|
||||
SELECT * FROM workspace_worktrees WHERE id = $1
|
||||
FOR UPDATE;
|
||||
|
||||
-- name: GetWorktreeByBranchForUpdate :one
|
||||
SELECT * FROM workspace_worktrees
|
||||
WHERE workspace_id = $1 AND branch = $2
|
||||
|
||||
Reference in New Issue
Block a user