Function

GgitRepositoryclone

Declaration [src]

GgitRepository*
ggit_repository_clone (
  const gchar* url,
  GFile* location,
  GgitCloneOptions* options,
  GError** error
)

Description [src]

Clones a new git repository in the given folder.

Parameters

url const gchar*
 

Url to fetch the repository from.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
location GFile
 

The location of the repository.

 The data is owned by the caller of the function.
options GgitCloneOptions
 

A GgitCloneOptions.

 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: GgitRepository
 

A newly created GgitRepository.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.