Skip to main content

at

Function at 

Source
pub fn at(
    path: impl AsRef<Path>,
    object_hash: Kind,
    alloc_limit_bytes: Option<usize>,
) -> Result<Graph>
Expand description

Instantiate a commit graph from an .git/objects/info directory, or one of the various commit-graph files.

Chain entries and graph files must use object_hash, typically the repository’s hash kind. alloc_limit_bytes limits parent-buffer capacity estimates as described in Graph::at(). None disables the limit.