Method: Git::Base::Factory#branch

Defined in:
lib/git/base/factory.rb

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

Returns an object for branch_name.

Returns:



7
8
9
# File 'lib/git/base/factory.rb', line 7

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