Ggit.Branch.move

### Method

# Ggit Branchmove

#### Declaration [src]

    GgitBranch*
    ggit_branch_move (
      GgitBranch* branch,
      const gchar* new_branch_name,
      GgitCreateFlags flags,
      GError** error
    )

#### Description [src]

Moves/renames an existing branch reference.

#### Parameters

`new_branch_name` | `const gchar*`
| Target name of the branch once the move is performed; this name is validated for consistency.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`flags` | `GgitCreateFlags`
| A `GgitCreateFlags`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `GgitBranch`
| The new branch or `NULL`.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.