module Git

def self.default_branch(repository, options = {})

Returns:
  • (String) - the name of the default branch

Options Hash: (**options)
  • :log (Logger) -- A logger to use for Git operations. Git

Parameters:
  • options (Hash) -- The options for this command (see list of valid
  • repository (URI, Pathname, String) -- The (possibly remote) repository to get the default branch name for

Other tags:
    Example: with the logging option -
    Example: with a local repository Pathname -
    Example: with a local repository -
    Example: with a URI object -
    Example: with a URI string -
def self.default_branch(repository, options = {})
  Base.repository_default_branch(repository, options)
end