Method

GgitRepositorycheckout_index

Declaration [src]

gboolean
ggit_repository_checkout_index (
  GgitRepository* repository,
  GgitIndex* index,
  GgitCheckoutOptions* options,
  GError** error
)

Description [src]

Update files in the working tree to reflect the contents of the index. If index is NULL, then the current index 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

index GgitIndex
 

A GgitIndex 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.