Skip to main content

Module git

Module git 

Source
Expand description

Git tool — Uses system git with auto-installation support

Provides Git operations using the external git command. If git is not installed, downloads and installs it automatically on Windows, macOS, and Linux.

Structs§

BranchInfo
Branch information.
CommitInfo
Commit information for log display.
RepoStatus
Repository status information.
StashInfo
Stash information.
WorktreeInfo
Worktree information.

Functions§

create_branch
Create a new branch.
create_worktree
Create a new worktree.
delete_branch
Delete a branch.
ensure_git_installed
Ensure git is installed. Downloads and installs git if not found.
get_diff
Get diff output.
get_git_dir
Get the git directory path.
get_log
Get commit log.
get_status
Get repository status.
is_git_available
Check if git is available on the system.
is_git_repo
Check if a path is inside a git repository.
list_branches
List all local branches.
list_stashes
List stashes.
list_worktrees
List all worktrees.
remove_worktree
Remove a worktree.
stash
Create a stash.