Method: Rugged::Branch#head?

Defined in:
ext/rugged/rugged_branch.c

#head?Boolean

Returns true if the branch is pointed at by HEAD, false otherwise.

Returns:

  • (Boolean)
[View source]

27
28
29
30
31
32
# File 'ext/rugged/rugged_branch.c', line 27

static VALUE rb_git_branch_head_p(VALUE self)
{
	git_reference *branch;
	Data_Get_Struct(self, git_reference, branch);
	return git_branch_is_head(branch) ? Qtrue : Qfalse;
}