Ggit.DiffOptions – libgit2-glib-1.0 Reference Manual
Packages
libgit2-glib-1.0
Ggit
DiffOptions
flags
n_context_lines
n_interhunk_lines
new_prefix
old_prefix
pathspec
DiffOptions
get_flags
get_n_context_lines
get_n_interhunk_lines
get_new_prefix
get_old_prefix
get_pathspec
set_flags
set_n_context_lines
set_n_interhunk_lines
set_new_prefix
set_old_prefix
set_pathspec
DiffOptions
Object Hierarchy:
Description:
[
CCode
( type_id =
"ggit_diff_options_get_type ()"
) ]
public
class
DiffOptions
:
Object
Represents the options used when creating a
Diff
.
Namespace:
Ggit
Package:
libgit2-glib-1.0
Content:
Properties:
public
DiffOption
flags
{
get
;
set
construct
; }
The diff option flags.
public
int
n_context_lines
{
get
;
set
construct
; }
public
int
n_interhunk_lines
{
get
;
set
construct
; }
public
string
new_prefix
{
get
;
set
construct
; }
public
string
old_prefix
{
owned
get
;
set
construct
; }
public
string
[]
pathspec
{
get
;
set
construct
; }
Creation methods:
public
DiffOptions
()
Create a new diff options object.
Methods:
public
DiffOption
get_flags
()
Get the diff flags.
public
int
get_n_context_lines
()
Get the number of context lines to include in the diff.
public
int
get_n_interhunk_lines
()
Get the number of interhunk lines to include in the diff.
public
unowned
string
?
get_new_prefix
()
Get the diff new-prefix string.
public
string
?
get_old_prefix
()
Get the diff old-prefix string.
public
unowned
string
[]?
get_pathspec
()
Get the pathspec.
public
void
set_flags
(
DiffOption
flags)
Set the diff flags.
public
void
set_n_context_lines
(
int
n)
Set the number of context lines to include in the diff.
public
void
set_n_interhunk_lines
(
int
n)
Set the number of interhunk lines to include in the diff.
public
void
set_new_prefix
(
string
prefix)
Set the diff new-prefix string.
public
void
set_old_prefix
(
string
prefix)
Get the diff old-prefix string.
public
void
set_pathspec
(
string
[]? pathspec)
Set the pathspec.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref