Method: Rugged::Repository#namespace

Defined in:
ext/rugged/rugged_repo.c

#namespaceString

Returns the active namespace for the repository.

Returns:

  • (String)
[View source]

1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
# File 'ext/rugged/rugged_repo.c', line 1942

static VALUE rb_git_repo_get_namespace(VALUE self)
{
	git_repository *repo;
	const char *namespace;

	Data_Get_Struct(self, git_repository, repo);

	namespace = git_repository_get_namespace(repo);
	return namespace ? rb_str_new_utf8(namespace) : Qnil;
}