## GgitDiffRange GgitDiffRange |

## Synopsis

                        GgitDiffRange;
    GgitDiffRange *     ggit_diff_range_ref                 (GgitDiffRange *range);
    void                ggit_diff_range_unref               (GgitDiffRange *range);
    gint                ggit_diff_range_get_old_start       (GgitDiffRange *range);
    gint                ggit_diff_range_get_old_lines       (GgitDiffRange *range);
    gint                ggit_diff_range_get_new_start       (GgitDiffRange *range);
    gint                ggit_diff_range_get_new_lines       (GgitDiffRange *range);

## Object Hierarchy

      GBoxed
       +----GgitDiffRange

## Description

## Details

### GgitDiffRange

    typedef struct _GgitDiffRange GgitDiffRange;

Represents the hunk of a diff.

### ggit_diff_range_ref ()

    GgitDiffRange *     ggit_diff_range_ref                 (GgitDiffRange *range);

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

`range` : | a GgitDiffRange.
Returns : | a GgitDiffRange.

### ggit_diff_range_unref ()

    void                ggit_diff_range_unref               (GgitDiffRange *range);

Atomically decrements the reference count of `range` by one. If the reference count drops to 0, `range` is freed.

`range` : | a GgitDiffRange.

### ggit_diff_range_get_old_start ()

    gint                ggit_diff_range_get_old_start       (GgitDiffRange *range);

Gets the old starting line number for `range`.

`range` : | a GgitDiffRange.
Returns : | the range's old starting line.

### ggit_diff_range_get_old_lines ()

    gint                ggit_diff_range_get_old_lines       (GgitDiffRange *range);

Gets the old number of lines for `range`.

`range` : | a GgitDiffRange.
Returns : | the range's old number of lines.

### ggit_diff_range_get_new_start ()

    gint                ggit_diff_range_get_new_start       (GgitDiffRange *range);

Gets the new starting line number for `range`.

`range` : | a GgitDiffRange.
Returns : | the range's new starting line number.

### ggit_diff_range_get_new_lines ()

    gint                ggit_diff_range_get_new_lines       (GgitDiffRange *range);

Gets the new number of lines for `range`.

`range` : | a GgitDiffRange.
Returns : | the range's new number of lines.