Method

GgitIndexadd

Declaration [src]

gboolean
ggit_index_add (
  GgitIndex* idx,
  GgitIndexEntry* entry,
  GError** error
)

Description [src]

Add a file to the index.

Parameters

entry GgitIndexEntry
 

A GgitIndexEntry.

 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 successfully added, FALSE otherwise.