Expand description
Git utilities for clone, branch management, and repo inspection. Port of src/core/git/git-utils.ts
Structs§
- Branch
Status - Cloned
Repo Info - Discovered
Skill - GitFile
Change - Parsed
GitHub Url - Repo
Branch Info - Repo
Changes - Repo
Status - Worktree
List Entry
Enums§
Functions§
- branch_
exists - Check if a local branch exists.
- branch_
to_ safe_ dir_ name - Sanitize a branch name for use as a directory name.
- checkout_
branch - copy_
dir_ recursive - Recursively copy a directory, skipping .git and node_modules.
- dir_
name_ to_ repo - discover_
skills_ from_ path - Discover skills from a given path (looks for SKILL.md files in well-known subdirectories).
- fetch_
remote - get_
branch_ info - get_
branch_ status - get_
clone_ base_ dir - Base directory for cloned repos.
- get_
current_ branch - get_
default_ workspace_ worktree_ root - Default worktree root for a workspace: ~/.routa/workspace/{workspaceId}
- get_
repo_ changes - get_
repo_ status - get_
worktree_ base_ dir - Base directory for worktrees: ~/.routa/worktrees/
- is_
git_ repository - list_
cloned_ repos - List all cloned repos with branch and status info.
- list_
local_ branches - list_
remote_ branches - parse_
git_ status_ porcelain - parse_
github_ url - Parse a GitHub URL or owner/repo shorthand.
- pull_
branch - repo_
to_ dir_ name - reset_
local_ changes - worktree_
add - Add a new git worktree. If
create_branchis true, creates a new branch. - worktree_
list - List all worktrees for a repository.
- worktree_
prune - Prune stale worktree references.
- worktree_
remove - Remove a git worktree.