## GgitDiffDelta GgitDiffDelta |

## Synopsis

                        GgitDiffDelta;
    enum                GgitDeltaType;
    GgitDiffDelta *     ggit_diff_delta_ref                 (GgitDiffDelta *delta);
    void                ggit_diff_delta_unref               (GgitDiffDelta *delta);
    GgitDiffFile *      ggit_diff_delta_get_old_file        (GgitDiffDelta *delta);
    GgitDiffFile *      ggit_diff_delta_get_new_file        (GgitDiffDelta *delta);
    GgitDeltaType       ggit_diff_delta_get_status          (GgitDiffDelta *delta);
    guint               ggit_diff_delta_get_similarity      (GgitDiffDelta *delta);
    GgitDiffFlag        ggit_diff_delta_get_flags           (GgitDiffDelta *delta);

## Object Hierarchy

      GBoxed
       +----GgitDiffDelta

      GEnum
       +----GgitDeltaType

## Description

## Details

### GgitDiffDelta

    typedef struct _GgitDiffDelta GgitDiffDelta;

Represents the changes done to one file.

### enum GgitDeltaType

    typedef enum {
    	GGIT_DELTA_UNMODIFIED = 0,
    	GGIT_DELTA_ADDED      = 1,
    	GGIT_DELTA_DELETED    = 2,
    	GGIT_DELTA_MODIFIED   = 3,
    	GGIT_DELTA_RENAMED    = 4,
    	GGIT_DELTA_COPIED     = 5,
    	GGIT_DELTA_IGNORED    = 6,
    	GGIT_DELTA_UNTRACKED  = 7
    } GgitDeltaType;

Describes the type of change the delta is.

`GGIT_DELTA_UNMODIFIED` | unmodified.
`GGIT_DELTA_ADDED` | added.
`GGIT_DELTA_DELETED` | deleted.
`GGIT_DELTA_MODIFIED` | modified.
`GGIT_DELTA_RENAMED` | renamed.
`GGIT_DELTA_COPIED` | copied.
`GGIT_DELTA_IGNORED` | ignored.
`GGIT_DELTA_UNTRACKED` | untracked.

### ggit_diff_delta_ref ()

    GgitDiffDelta *     ggit_diff_delta_ref                 (GgitDiffDelta *delta);

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

`delta` : | a GgitDiffDelta.
Returns : | a GgitDiffDelta.

### ggit_diff_delta_unref ()

    void                ggit_diff_delta_unref               (GgitDiffDelta *delta);

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

`delta` : | a GgitDiffDelta.

### ggit_diff_delta_get_old_file ()

    GgitDiffFile *      ggit_diff_delta_get_old_file        (GgitDiffDelta *delta);

Gets the old file for `delta`.

`delta` : | a GgitDiffDelta.
Returns : | the delta's old file. [transfer none]

### ggit_diff_delta_get_new_file ()

    GgitDiffFile *      ggit_diff_delta_get_new_file        (GgitDiffDelta *delta);

Gets the new file for `delta`.

`delta` : | a GgitDiffDelta.
Returns : | the delta's new file. [transfer none]

### ggit_diff_delta_get_status ()

    GgitDeltaType       ggit_diff_delta_get_status          (GgitDiffDelta *delta);

Gets the GgitDeltaType for `delta`.

`delta` : | a GgitDiffDelta.
Returns : | the delta's status.

### ggit_diff_delta_get_similarity ()

    guint               ggit_diff_delta_get_similarity      (GgitDiffDelta *delta);

Gets the similarity between `delta` files.

`delta` : | a GgitDiffDelta.
Returns : | the delta's similarity.

### ggit_diff_delta_get_flags ()

    GgitDiffFlag        ggit_diff_delta_get_flags           (GgitDiffDelta *delta);

Gets flags for `delta`.

`delta` : | a GgitDiffDelta.
Returns : | the delta flags