Ggit.Patch.ref

### Method

# Ggit Patchref

#### Declaration [src]

    GgitPatch*
    ggit_patch_ref (
      GgitPatch* patch
    )

#### Description [src]

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

#### Return value

Returns: | `GgitPatch`
| A `GgitPatch` or `NULL`.
| The data is owned by the instance.
| The return value can be `NULL`.