Method

GgitRepositorynote_foreach

Declaration [src]

gboolean
ggit_repository_note_foreach (
  GgitRepository* repository,
  const gchar* notes_ref,
  GgitNoteCallback callback,
  gpointer user_data,
  GError** error
)

Description [src]

Loop over all the notes within a specified namespace and issue a callback for each one. If callback returns a non-zero value, this will stop looping.

Parameters

notes_ref const gchar*
 

Canonical name of the reference to use, or NULL to use the default ref.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
callback GgitNoteCallback
 

A GgitNoteCallback.

user_data gpointer
 

Callback user data.

 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 there was no error, FALSE otherwise.