Expand description
Switch, create, and derive Git branches (including from GitHub PR URLs).
ยงErrors
- Git operations, GitHub API calls, or user interaction fails.
Functionsยง
- ask_
branching_ ๐from_ not_ default - Prints a styled notice that a new branch is being created from a non-default branch.
- autocomplete_
git_ ๐branches_ and_ switch - Interactive selection and switching of Git branches.
- build_
branch_ ๐name - Builds a sanitized, lowercased Git branch name from raw arguments.
- create_
branch_ ๐and_ switch - Creates a new local branch (if desired) and switches to it.
- handle_
single_ ๐input_ argument - Handles a single input argument, either a GitHub PR URL or a branch name, and switches to the corresponding branch.
- main ๐
- Switch, create, and derive Git branches (including from GitHub PR URLs).
- report_
branch_ ๐exists - Prints a styled indication that the branch already exists; then indicates switch.
- report_
branch_ ๐new - Prints a styled indication that a new branch was created.
- report_
branch_ ๐not_ created - Prints a styled indication that branch creation was aborted (no newline).
- report_
branch_ ๐switch - Prints a styled indication of a successful branch switch.
- should_
create_ ๐new_ branch - Returns
trueif a new branch may be created following the desired behavior.