libgit2

object

Version:
Git revision object management routines

Objects

Representation of a generic object in a repository

Macros

Enums

Basic type (loose or packed) of any Git object

Aliases

The maximum size of an object

Functions

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 loose 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.

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.