Method: Git::Base.repository_default_branch
- Defined in:
- lib/git/base.rb
.repository_default_branch(repository, options = {}) ⇒ String
Returns the name of the default branch of the given repository
29 30 31 |
# File 'lib/git/base.rb', line 29 def self.repository_default_branch(repository, = {}) Git::Lib.new(nil, [:log]).repository_default_branch(repository) end |