Method
GgitRepositorycreate_reference
Declaration [src]
GgitRef*
ggit_repository_create_reference (
GgitRepository* repository,
const gchar* name,
GgitOId* oid,
const gchar* log_message,
GError** error
)
Description [src]
Creates a new object id reference.
The reference will be created in the repository and written to the disk. The returned value must be freed with g_object_unref().
Parameters
name |
const gchar* |
The name for the new |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
oid |
GgitOId |
The |
|
The data is owned by the caller of the function. | |
log_message |
const gchar* |
The one line long message to be appended to the reflog. |
|
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 newly created reference. |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL . |