Method: Rugged::Config.open_global
- Defined in:
- ext/rugged/rugged_config.c
.global ⇒ Object .open_global ⇒ Object
Open the default global config file as a new Rugged::Config
object. An exception will be raised if the global config file doesn’t exist.
296 297 298 299 300 301 302 303 304 305 |
# File 'ext/rugged/rugged_config.c', line 296
static VALUE rb_git_config_open_default(VALUE klass)
{
git_config *cfg;
int error;
error = git_config_open_default(&cfg);
rugged_exception_check(error);
return rugged_config_new(klass, Qnil, cfg);
}
|