Method: Rugged.dotgit_ignore?

Defined in:
ext/rugged/rugged.c

.dotgit_ignore?(rb_path) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'ext/rugged/rugged.c', line 554

static VALUE rb_git_path_is_dotgit_ignore(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_GITIGNORE, GIT_PATH_FS_GENERIC);

	return is_dotgit ? Qtrue : Qfalse;
}