Method: Rugged::Reference#tag?

Defined in:
ext/rugged/rugged_reference.c

#tag?Boolean

Returns true if reference is a tag, false otherwise.

Returns:

  • (Boolean)


378
379
380
381
382
383
# File 'ext/rugged/rugged_reference.c', line 378

static VALUE rb_git_ref_is_tag(VALUE self)
{
	git_reference *ref;
	Data_Get_Struct(self, git_reference, ref);
	return git_reference_is_tag(ref) ? Qtrue : Qfalse;
}