Draft
Conversation
Agent-Logs-Url: https://github.com/bubunyo/git-rbs/sessions/857cb674-c0c2-44f6-8488-875b639e071e Co-authored-by: bubunyo <5031930+bubunyo@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
bubunyo
April 30, 2026 06:22
View session
Owner
|
@copilot the command should work by identifying worktree automatically |
Agent-Logs-Url: https://github.com/bubunyo/git-rbs/sessions/bec9bf41-b2e6-4a47-a915-1755fc867742 Co-authored-by: bubunyo <5031930+bubunyo@users.noreply.github.com>
Author
Done in 375294a. The worktree path is now derived automatically from the selected branch name ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
git-rbshad no way to create worktrees interactively — users had to drop out to the shell and remember thegit worktree addsyntax manually.Changes
rbs.golistBranches()andbranchSelectPrompt()helpers — eliminates duplication betweenRun()andRunWorktree()RunWorktree(): presents the same interactive branch selector, then automatically derives the worktree path as../<branch-name>(with/→-) and runsgit worktree add <path> <branch>— no manual path input requiredRun()andRunWorktree()fromOutput()toCombinedOutput()so git's stderr is surfaced on failurecmd/rbs/main.goRunWorktree()when the first argument isworktreeUsage