Crate irox_git_tools

Source
Expand description

Wrappers and scripts around the git2 crate

Structs§

DescribeResult

Enums§

Error

Functions§

describe
discover_repo_or_worktree_at
Returns a discovered Repository, or if the path is a git worktree, then returns the actual backed .git folder for this worktree in the main repository.
discover_repository
Attempts to find the repository at the specified location
get_branch_for_head
Resolved the branch for HEAD if one exists
get_head_for_repo
Resolves HEAD to a commit for the specified repo. Returns an error if HEAD doesn’t exist, or HEAD doesn’t point to a commit in the provided repository
git_repodir_for_repo
If the repository represents a worktree, peels it to find the real .git directory, and returns a repository against the real .git directory.