Skip to main content

parse_object_references

Function parse_object_references 

Source
pub fn parse_object_references(
    object_data: &[u8],
    format: ObjectFormat,
) -> Result<Vec<GitHash>>
Expand description

Parse object references from git object data.

format is the repository’s object format, needed to slice binary tree entries at the correct OID width. Callers derive it from the hash of the object being parsed (GitHash::object_format).