Ggit.RefSpec.ref

### Method

# Ggit RefSpecref

#### Declaration [src]

    GgitRefSpec*
    ggit_ref_spec_ref (
      GgitRefSpec* refspec
    )

#### Description [src]

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

#### Return value

Type: `GgitRefSpec`

A `GgitRefSpec` or `NULL`.

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