Skip to main content

Module git

Module git 

Source
Expand description

In-process git operations via libgit2.

Replaces all crate::process_util::hidden_command("git") usage with library calls. Zero child processes, zero console windows, faster execution.

Structs§

GitRepo
Thin wrapper around git2::Repository.
LogEntry
A single commit from the log, with the list of files it touched.

Functions§

commit_distance
Count commits reachable from to but not from from, equivalent to git rev-list --count <from>..<to>.
head_sha
Return the full SHA of HEAD.