Method

GgitIndexadd_file

Declaration [src]

gboolean
ggit_index_add_file (
  GgitIndex* idx,
  GFile* file,
  GError** error
)

Description [src]

Add a file to the index. The specified file must be in the working directory and must exist and be readable.

Parameters

file GFile
 

File to add.

 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 file was added to the index or FALSE if there was an error.