Method

GgitTreeget_by_name

Declaration [src]

GgitTreeEntry*
ggit_tree_get_by_name (
  GgitTree* tree,
  const gchar* name
)

Description [src]

Get a tree entry by name.

Parameters

name const gchar*
 

A filename.

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

Return value

Returns: GgitTreeEntry
 

A GgitTreeEntry or NULL.

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