Expand description
Wrappers and scripts around the git2
crate
Structs§
Enums§
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 ifHEAD
doesn’t exist, orHEAD
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.