libgit2

refs

Version:
References point to a commit; generally these are branches and tags

Objects

In-memory representation of a reference

Enums

Normalization options for reference lookup

Basic type of any Git reference

Callbacks

Callback used to iterate over references

Callback used to iterate over reference names

Functions

Lookup a reference by name in a repository

Lookup a reference by name and resolve immediately to OID

Lookup a reference by DWIMing its short name

Conditionally create a new symbolic reference

Create a new symbolic reference

Create a new direct reference

Conditionally create new direct reference

Get the OID pointed to by a direct reference

Return the peeled OID target of this 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.

Conditionally 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

Delete an existing reference by name

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

Perform a callback on each reference in the repository

Perform a callback on the fully-qualified name of each reference

Create a copy of an existing reference

Free the given reference

Compare two references

Create an iterator for the repo's references

Create an iterator for the repo's references that match the specified glob

Get the next reference

Get the next reference's name

Free the iterator and its associated resources

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

Check if a reflog exists for the specified reference

Ensure there is a reflog for a particular reference

Check if a reference is a local branch

Check if a reference is a remote tracking branch

Check if a reference is a tag

Check if a reference is a note

Normalize reference name and check validity

Recursively peel reference until object of the specified type is found

Ensure the reference name is well-formed

Get the reference's short name