Method: Rugged::OdbObject#oid
- Defined in:
- ext/rugged/rugged_repo.c
permalink #oid ⇒ Object
Return the Object ID (a 40 character SHA1 hash) for this raw object.
odb_obj.oid #=> "d8786bfc97485e8d7b19b21fb88c8ef1f199fc3f"
49 50 51 52 53 54 |
# File 'ext/rugged/rugged_repo.c', line 49
static VALUE rb_git_odbobj_oid(VALUE self)
{
git_odb_object *obj;
TypedData_Get_Struct(self, git_odb_object, &rugged_odb_object_type, obj);
return rugged_create_oid(git_odb_object_id(obj));
}
|