Method

GgitDiffHunkref

Declaration [src]

GgitDiffHunk*
ggit_diff_hunk_ref (
  GgitDiffHunk* hunk
)

Description [src]

Atomically increments the reference count of hunk by one. This function is MT-safe and may be called from any thread.

Return value

Returns: GgitDiffHunk
 

A GgitDiffHunk or NULL.

 The data is owned by the instance.
 The return value can be NULL.