libgit2

refs

Version:
Git reference management routines

Objects

In-memory representation of a reference

Enums

Callbacks

Functions

Lookup a reference by name in a repository

Lookup a reference by name and resolve immediately to OID

Create a new symbolic reference

Create a new direct reference

Get the OID pointed to by a direct reference

Get full name to the reference pointed to by a symbolic reference

Get the type of a reference

Get the full name of a reference

Resolve a symbolic reference to a direct reference

Get the repository where a reference resides

Create a new reference with the same name as the given reference but a different symbolic target otherwise this will fail.

Create a new reference with the same name as the given reference but a different OID target this will fail.

Rename an existing reference

Delete an existing reference

Fill a list with all the references that can be found in a repository

Perform a callback on each reference in the repository

Free the given reference

Compare two references

Perform a callback on each reference in the repository whose name matches the given pattern

Check if a reflog exists for the specified reference

Check if a reference is a local branch

Check if a reference is a remote tracking branch

Normalize reference name and check validity

Recursively peel reference until object of the specified type is found

Ensure the reference name is well-formed