## GgitDiffOptions GgitDiffOptions |

## Synopsis

                        GgitDiffOptions;
    GgitDiffOptions *   ggit_diff_options_copy              (GgitDiffOptions *diff_options);
    void                ggit_diff_options_free              (GgitDiffOptions *diff_options);
    GgitDiffOptions *   ggit_diff_options_new               (GgitDiffOption flags,
                                                             gint n_context_lines,
                                                             gint n_interhunk_lines,
                                                             const gchar *old_prefix,
                                                             const gchar *new_prefix,
                                                             const gchar **pathspec);

## Object Hierarchy

      GBoxed
       +----GgitDiffOptions

## Description

## Details

### GgitDiffOptions

    typedef struct _GgitDiffOptions GgitDiffOptions;

Represents the options used when creating a GgitDiff.

### ggit_diff_options_copy ()

    GgitDiffOptions *   ggit_diff_options_copy              (GgitDiffOptions *diff_options);

Copies `diff_options` into a newly allocated GgitDiffOptions.

`diff_options` : | a GgitDiffOptions.
Returns : | a newly allocated GgitDiffOptions. [transfer full]

### ggit_diff_options_free ()

    void                ggit_diff_options_free              (GgitDiffOptions *diff_options);

Frees `diff_options`.

`diff_options` : | a GgitDiffOptions.

### ggit_diff_options_new ()

    GgitDiffOptions *   ggit_diff_options_new               (GgitDiffOption flags,
                                                             gint n_context_lines,
                                                             gint n_interhunk_lines,
                                                             const gchar *old_prefix,
                                                             const gchar *new_prefix,
                                                             const gchar **pathspec);

Creates a new GgitDiffOptions for use in creating a GgitDiff.

`flags` : | how the diff should be performed, default is GGIT_DIFF_NORMAL.
`n_context_lines` : | the number of context lines, default it 3.
`n_interhunk_lines` : | the number of interhunk lines, default is 3.
`old_prefix` : | the old prefix, defaults to "a". [allow-none]
`new_prefix` : | the new prefix, defaults to "b". [allow-none]
`pathspec` : | which paths to show, defaults to showing all paths. [allow-none]
Returns : | a newly allocated GgitDiffOptions.