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.gitfolder 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
HEADif one exists - get_
head_ for_ repo - Resolves
HEADto a commit for the specified repo. Returns an error ifHEADdoesn’t exist, orHEADdoesn’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
.gitdirectory, and returns a repository against the real.gitdirectory.