Skip to main content

Module git

Module git 

Source
Expand description

Git utilities for clone, branch management, and repo inspection. Port of src/core/git/git-utils.ts

Structs§

BranchStatus
ClonedRepoInfo
DiscoveredSkill
GitFileChange
ParsedGitHubUrl
RepoBranchInfo
RepoChanges
RepoStatus
WorktreeListEntry

Enums§

FileChangeStatus

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_branch is 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.