Method: Rugged::Reference#branch?
- Defined in:
- ext/rugged/rugged_reference.c
#branch? ⇒ Boolean
Returns true if reference is a local branch, false otherwise.
335 336 337 338 339 340 |
# File 'ext/rugged/rugged_reference.c', line 335 static VALUE rb_git_ref_is_branch(VALUE self) { git_reference *ref; Data_Get_Struct(self, git_reference, ref); return git_reference_is_branch(ref) ? Qtrue : Qfalse; } |