Method: Rugged::Tag::Annotation#tagger

Defined in:
ext/rugged/rugged_tag.c

#taggerObject

Return the signature for the author of this tag annotation. The signature is returned as a Hash containing :name, :email of the author and :time of the tagging.

annotation.tagger #=> {:email=>"tanoku@gmail.com", :time=>Tue Jan 24 05:42:45 UTC 2012, :name=>"Vicent Mart\303\255"}

113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'ext/rugged/rugged_tag.c', line 113

static VALUE rb_git_tag_annotation_tagger(VALUE self)
{
	git_tag *tag;
	const git_signature *tagger;

	TypedData_Get_Struct(self, git_tag, &rugged_object_type, tag);
	tagger = git_tag_tagger(tag);

	if (!tagger)
		return Qnil;

	return rugged_signature_new(tagger, NULL);
}