Method: Git::Base#branch

Defined in:
lib/git/base.rb

#branch(branch_name = self.current_branch) ⇒ Git::Branch

Returns an object for branch_name.

Returns:

[View source]

696
697
698
# File 'lib/git/base.rb', line 696

def branch(branch_name = self.current_branch)
  Git::Branch.new(self, branch_name)
end