Skip to content
Discussion options

You must be logged in to vote

Short answer: Sugar manages git branches (partially) but not worktrees. Running multiple Sugar sessions in one repo working directory at the same time is not safe.

Worktrees: no

Sugar never calls git worktree. There are zero references to worktrees anywhere in the codebase. All git operations run against the current working directory (cwd=self.repo_path in GitOperations). So your assumption is correct: Sugar works on whatever repo you invoked it in. It does not spin up isolated worktrees.

Branches: only conditionally, and only for GitHub-sourced work

Sugar has two git workflow modes, set in config under sugar.discovery.github.workflow.git_workflow:

  • direct_commit (default): Sugar does not …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cdnsteve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants