## GgitDiffFile GgitDiffFile |

## Synopsis

                        GgitDiffFile;
    GgitDiffFile *      ggit_diff_file_ref                  (GgitDiffFile *file);
    void                ggit_diff_file_unref                (GgitDiffFile *file);
    GgitOId *           ggit_diff_file_get_oid              (GgitDiffFile *file);
    const gchar *       ggit_diff_file_get_path             (GgitDiffFile *file);
    guint16             ggit_diff_file_get_mode             (GgitDiffFile *file);
    gint64              ggit_diff_file_get_size             (GgitDiffFile *file);
    GgitDiffFlag        ggit_diff_file_get_flags            (GgitDiffFile *file);

## Object Hierarchy

      GBoxed
       +----GgitDiffFile

## Description

## Details

### GgitDiffFile

    typedef struct _GgitDiffFile GgitDiffFile;

Represents a file in a GgitDiff.

### ggit_diff_file_ref ()

    GgitDiffFile *      ggit_diff_file_ref                  (GgitDiffFile *file);

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

`file` : | a GgitDiff.
Returns : | a GgitDiffFile.

### ggit_diff_file_unref ()

    void                ggit_diff_file_unref                (GgitDiffFile *file);

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

`file` : | a GgitDiffFile.

### ggit_diff_file_get_oid ()

    GgitOId *           ggit_diff_file_get_oid              (GgitDiffFile *file);

Gets the GgitOId for `file`.

`file` : | a GgitDiffFile.
Returns : | the file's GgitOId. [transfer none]

### ggit_diff_file_get_path ()

    const gchar *       ggit_diff_file_get_path             (GgitDiffFile *file);

Gets the path of `file` or `NULL` if it is unknown.

`file` : | a GgitDiffFile.
Returns : | the file's path, or `NULL`. [allow-none]

### ggit_diff_file_get_mode ()

    guint16             ggit_diff_file_get_mode             (GgitDiffFile *file);

Gets the mode for `file`.

`file` : | a GgitDiffFile.
Returns : | the file's mode.

### ggit_diff_file_get_size ()

    gint64              ggit_diff_file_get_size             (GgitDiffFile *file);

Gets the size for `file`.

`file` : | a GgitDiffFile.
Returns : | the file's size.

### ggit_diff_file_get_flags ()

    GgitDiffFlag        ggit_diff_file_get_flags            (GgitDiffFile *file);

Gets the GgitDifflags for `file`.

`file` : | a GgitDiffFile.
Returns : | the file's flags.