![]() |
![]() |
![]() |
libgit2-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
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
);
typedef struct _GgitDiffOptions GgitDiffOptions;
Represents the options used when creating a GgitDiff.
GgitDiffOptions * ggit_diff_options_copy (GgitDiffOptions *diff_options
);
Copies diff_options
into a newly allocated GgitDiffOptions.
|
a GgitDiffOptions. |
Returns : |
a newly allocated GgitDiffOptions. [transfer full] |
void ggit_diff_options_free (GgitDiffOptions *diff_options
);
Frees diff_options
.
|
a GgitDiffOptions. |
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.
|
how the diff should be performed, default is GGIT_DIFF_NORMAL. |
|
the number of context lines, default it 3. |
|
the number of interhunk lines, default is 3. |
|
the old prefix, defaults to "a". [allow-none] |
|
the new prefix, defaults to "b". [allow-none] |
|
which paths to show, defaults to showing all paths. [allow-none] |
Returns : |
a newly allocated GgitDiffOptions. |