Method: Rugged::Config#snapshot

Defined in:
ext/rugged/rugged_config.c

#snapshotObject

Create a snapshot of the configuration.

Provides a consistent, read-only view of the configuration for looking up complex values from a configuration.


316
317
318
319
320
321
322
323
324
325
326
327
# File 'ext/rugged/rugged_config.c', line 316

static VALUE rb_git_config_snapshot(VALUE self)
{
	git_config *config, *snapshot;

	Data_Get_Struct(self, git_config, config);

	rugged_exception_check(
		git_config_snapshot(&snapshot, config)
	);

	return rugged_config_new(rb_obj_class(self), Qnil, snapshot);
}