Config
Object Hierarchy:
Ggit.Config
Ggit.Config
Ggit.Config
Ggit.Native
Ggit.Native
Ggit.Native->Ggit.Config
Ggit.ObjectFactoryBase
Ggit.ObjectFactoryBase
Ggit.ObjectFactoryBase->Ggit.Native
GLib.Object
GLib.Object
GLib.Object->Ggit.ObjectFactoryBase
Description:
[
CCode ( type_id =
"ggit_config_get_type ()" ) ]
public class Config :
Native
Represents a git configuration.
Content:
Static methods:
Creation methods:
public Config ()
Create a new config.
public Config.default () throws Error
Get the global, XDG and system configuration files merged into one
Config with their appropriate priority levels.
public Config.from_file (File file) throws Error
Create a new config from a single on disk file.
Methods:
public bool @foreach (ConfigCallback callback) throws Error
Call callback
for each configuration value.
public void add_file (File file, ConfigLevel level, bool force) throws Error
Add an on-disk config file instance to an existing config
public bool delete_entry (string name) throws Error
Delete a config variable from the config file.
public bool get_bool (string name) throws Error
Get a boolean configuration value.
public ConfigEntry get_entry (string name) throws Error
public int32 get_int32 (string name) throws Error
Get a int32 configuration value.
public int64 get_int64 (string name) throws Error
Get a int64 configuration value.
public unowned string ? get_string (string name) throws Error
Get the configuration value of name
as string.
public string ? match (Regex regex, out MatchInfo match_info) throws Error
Matches a configuration against a regular expression.
public bool match_foreach (Regex regex, ConfigMatchCallback callback) throws Error
Call callback
for all configurations matching regex
.
public Config open_level (ConfigLevel level) throws Error
Open a specific level config derived from a multi-level one.
public bool set_bool (string name, bool value) throws Error
Set a boolean value.
public bool set_int32 (string name, int32 value) throws Error
Set a int32 value.
public bool set_int64 (string name, int64 value) throws Error
Set a int64 value.
public bool set_string (string name, string value) throws Error
Set a new string value of a configuration.
public Config snapshot () throws Error
Create a snapshot of the current state of the configuration, which
allows you to look into a consistent view of the configuration for looking up complex values (e.
Inherited Members:
All known members inherited from class Ggit.Native
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