Git Worktrees
roborev fully supports git worktrees. Reviews are stored against the main repository, so commits made in any worktree are associated with the same review history.
Usage
# In main repogit worktree add ../feature-branch feature-branchcd ../feature-branch
# Reviews work normally - they're stored under the main reporoborev review --branchroborev refineroborev tuiHow It Works
When running commands from a worktree:
- Reviews are stored using the main repository path (not the worktree path)
- The TUI shows all reviews for the repository regardless of which worktree you’re in
refinecorrectly finds and addresses reviews for commits in any worktree
This is handled automatically - no configuration needed.
Example Workflow
# You're working on maincd ~/projects/myapproborev tui # Shows all reviews
# Create a worktree for a feature branchgit worktree add ~/projects/myapp-feature feature-branchcd ~/projects/myapp-feature
# Make commits - reviews are tracked under myappgit commit -m "Add feature"
# View all reviews (same database)roborev tui
# Run refine in the worktreeroborev refine
# Clean up when donecd ~/projects/myappgit worktree remove ~/projects/myapp-featureWhy This Matters
Without worktree support, you’d have:
- Duplicate repository entries in the database
- Scattered reviews across different paths
- Confusion about which reviews belong to which code
With proper worktree support, everything is consolidated under the main repository.
See Also
- Repository Management - Managing tracked repos
- Configuration - Per-repo and global settings