Representation of a generic object in a repository
Options for calculating object IDs from raw content
Maximum size of a git object
Current version for the git_object_id_options structure
Static constructor for object_id_options
Basic type (loose or packed) of any Git object
The maximum size of an object
Lookup a reference to one of the objects in a repository
Lookup a reference to one of the objects in a repository, given a prefix of its identifier (short id)
Lookup an object that represents a tree entry
Get the id (SHA1) of a repository object
Get a short abbreviated OID string for the object
Get the object type of an object
Get the repository that owns this object
Close an open object
Convert an object type to its string representation
Convert a string object type representation to it's git_object_t
Determine if the given git_object_t is a valid object type
Recursively peel an object until an object of the specified type is met
Create an in-memory copy of a Git object explicitly free'd or it will leak.
Initialize git_object_id_options structure with default values Equivalent to creating an instance with GIT_WORKTREE_ADD_OPTIONS_INIT.
Given the raw content of an object, determine the object ID This prepends the object header to the given data, and hashes the results with the hash corresponding to the given oid_type.
Given an on-disk file that contains the raw content of an object, determine the object ID data, and hashes the results with the hash corresponding to the given oid_type.
Analyzes a buffer of raw object content and determines its validity Tree, commit, and tag objects will be parsed and ensured that they are valid, parseable content. (Blobs are always valid by definition.) An error message will be set with an informative message if the object is not valid.