Method

GgitRepositorycheckout_head

Declaration [src]

gboolean
ggit_repository_checkout_head (
  GgitRepository* repository,
  GgitCheckoutOptions* options,
  GError** error
)

Description [src]

Update files in the working tree to reflect the contents of current HEAD. If options is NULL, then the default checkout options will be used.

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

Parameters

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.