Method: Rugged::Tag::Annotation#target_id

Defined in:
ext/rugged/rugged_tag.c

#target_oidObject #target_idObject

Return the oid pointed at by this tag annotation, as a String instance.

annotation.target_id #=> "2cb831a8aea28b2c1b9c63385585b864e4d3bad1"
[View source]

55
56
57
58
59
60
61
62
63
64
65
# File 'ext/rugged/rugged_tag.c', line 55

static VALUE rb_git_tag_annotation_target_id(VALUE self)
{
	git_tag *tag;
	const git_oid *target_oid;

	TypedData_Get_Struct(self, git_tag, &rugged_object_type, tag);

	target_oid = git_tag_target_id(tag);

	return rugged_create_oid(target_oid);
}