Method: Rugged::Object#oid

Defined in:
ext/rugged/rugged_object.c

#oidObject

Return the Object ID (a 40 character SHA1 hash) for object.

[View source]

368
369
370
371
372
373
# File 'ext/rugged/rugged_object.c', line 368

static VALUE rb_git_object_oid_GET(VALUE self)
{
  git_object *object;
  TypedData_Get_Struct(self, git_object, &rugged_object_type, object);
  return rugged_create_oid(git_object_id(object));
}