Ggit.AnnotatedCommit.ref

### Method

# Ggit AnnotatedCommitref

#### Declaration [src]

    GgitAnnotatedCommit*
    ggit_annotated_commit_ref (
      GgitAnnotatedCommit* annotated_commit
    )

#### Description [src]

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

#### Return value

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