Method
GgitRepositorylookup_reference
Declaration [src]
GgitRef*
ggit_repository_lookup_reference (
GgitRepository* repository,
const gchar* name,
GError** error
)
Description [src]
Lookups a reference by its name in repository. The returned GgitRef must
be freed with g_object_unref().
Parameters
name |
const gchar* |
The long name for the reference (e.g. HEAD, ref/heads/master, refs/tags/v0.1.0, …). |
|
| The data is owned by the caller of the function. | |
| The value is a NUL terminated UTF-8 string. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | GgitRef |
The searched reference. |
|
| The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL. |