Method: Rugged.dotgit_modules?

Defined in:
ext/rugged/rugged.c

.dotgit_modules?(rb_path) ⇒ Boolean

Returns:

  • (Boolean)

540
541
542
543
544
545
546
547
548
549
550
551
552
# File 'ext/rugged/rugged.c', line 540

static VALUE rb_git_path_is_dotgit_modules(VALUE self, VALUE rb_path)
{
	const char *path;
	int is_dotgit;

	Check_Type(rb_path, T_STRING);

	path = StringValueCStr(rb_path);

	is_dotgit = git_path_is_gitfile(path, strlen(path), GIT_PATH_GITFILE_GITMODULES, GIT_PATH_FS_GENERIC);

	return is_dotgit ? Qtrue : Qfalse;
}