Method: Git.ls_remote

Defined in:
lib/git.rb

.ls_remote(location = nil, options = {}) ⇒ {String=>Hash}

returns a Hash containing information about the references of the target repository

options :refs

Parameters:

  • location (String|NilClass) (defaults to: nil)

    the target repository location or nil for '.'

Returns:

  • ({String=>Hash})

    the available references of the target repo.



371
372
373
# File 'lib/git.rb', line 371

def self.ls_remote(location = nil, options = {})
  Git::Lib.new.ls_remote(location, options)
end