Method: Rugged::Reference#name
- Defined in:
- ext/rugged/rugged_reference.c
#name ⇒ Object #canonical_name ⇒ Object
Returns the fully qualified name of the reference.
name
gets overwritten in subclasess like Rugged::Branch or Rugged::Tag to return “nicer” names for presentational purposes, while canonical_name
is always supposed to return the fully qualified reference path.
reference.name #=> 'HEAD'
218 219 220 221 222 223 |
# File 'ext/rugged/rugged_reference.c', line 218
static VALUE rb_git_ref_name(VALUE self)
{
git_reference *ref;
Data_Get_Struct(self, git_reference, ref);
return rb_str_new_utf8(git_reference_name(ref));
}
|