Ggit.Repository.checkout_tree

### Method

# Ggit Repositorycheckout_tree

#### Declaration [src]

    gboolean
    ggit_repository_checkout_tree (
      GgitRepository* repository,
      GgitObject* tree,
      GgitCheckoutOptions* options,
      GError** error
    )

#### Description [src]

Update files in the working tree to reflect the contents of the specified commit, tag or tree object. If `tree` is `NULL`, then the current HEAD of the repository will be used. If `options` is `NULL`, then the default checkout options will be used.

If the checkout was not successfull, then `error` will be set.

#### Parameters

`tree` | `GgitObject`
| A `GgitObject` or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`options` | `GgitCheckoutOptions`
| A `GgitCheckoutOptions` or `NULL`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` if the checkout was successfull, `FALSE` otherwise.