Method: Rugged.dotgit_attributes?

Defined in:
ext/rugged/rugged.c

.dotgit_attributes?(rb_path) ⇒ Boolean

Returns:



568
569
570
571
572
573
574
575
576
577
578
579
580
# File 'ext/rugged/rugged.c', line 568

static VALUE rb_git_path_is_dotgit_attributes(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_GITATTRIBUTES, GIT_PATH_FS_GENERIC);

  return is_dotgit ? Qtrue : Qfalse;
}