Crate irox_git_tools
source ·Expand description
Wrappers and scripts around the git2
crate
Structs
Enums
Functions
- 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. - Attempts to find the repository at the specified location
- Resolved the branch for
HEAD
if one exists - Resolves
HEAD
to a commit for the specified repo. Returns an error ifHEAD
doesn’t exist, orHEAD
doesn’t point to a commit in the provided repository - If the repository represents a worktree, peels it to find the real
.git
directory, and returns a repository against the real.git
directory.