Method: Rugged::Branch#name
- Defined in:
- ext/rugged/rugged_branch.c
permalink #name ⇒ String
Returns the name of branch
.
See Rugged::Reference#canonical_name if you need the fully qualified name of the underlying reference.
43 44 45 46 47 48 49 50 51 52 |
# File 'ext/rugged/rugged_branch.c', line 43
static VALUE rb_git_branch_name(VALUE self)
{
git_reference *branch;
const char *branch_name;
Data_Get_Struct(self, git_reference, branch);
rugged_exception_check(git_branch_name(&branch_name, branch));
return rb_str_new_utf8(branch_name);
}
|