Method: Rugged::Repository#path_ignored?

Defined in:
ext/rugged/rugged_repo.c

#path_ignored?(path) ⇒ Boolean

Return whether a path is ignored or not.

Returns:

  • (Boolean)

2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
# File 'ext/rugged/rugged_repo.c', line 2498

static VALUE rb_git_repo_is_path_ignored(VALUE self, VALUE rb_path) {
	git_repository *repo;
	const char *path;
	int error;
	int ignored;

	Data_Get_Struct(self, git_repository, repo);
	path = StringValueCStr(rb_path);
	error = git_ignore_path_is_ignored(&ignored, repo, path);
	rugged_exception_check(error);
	return ignored ? Qtrue : Qfalse;
}