Ggit.Repository.create_symbolic_reference

### Method

# Ggit Repositorycreate_symbolic_reference

#### Declaration [src]

    GgitRef*
    ggit_repository_create_symbolic_reference (
      GgitRepository* repository,
      const gchar* name,
      const gchar* target,
      const gchar* log_message,
      GError** error
    )

#### Description [src]

Creates a new symbolic 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 `GgitRef`.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`target` | `const gchar*`
| The full name to the reference.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`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`.