Method

GgitPatchget_hunk

Declaration [src]

GgitDiffHunk*
ggit_patch_get_hunk (
  GgitPatch* patch,
  gsize idx,
  GError** error
)

Description [src]

Get the idxth hunk in the patch.

Parameters

idx gsize
 

The hunk index.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GgitDiffHunk
 

A new GgitDiffHunk or NULL on error.

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