diff options
author | Sunny <me@darkowlzz.space> | 2017-10-04 01:59:13 +0530 |
---|---|---|
committer | Sunny <me@darkowlzz.space> | 2017-10-04 01:59:13 +0530 |
commit | 4d0c2cccb890be585b74fea3805db6e555f42cfc (patch) | |
tree | 1ffa756b197c8e38b10e019fd1e0aa3e16be0f19 /remote.go | |
parent | 7172e04fe7e000d8826f0402dd7f70d8b3d55072 (diff) | |
download | go-git-4d0c2cccb890be585b74fea3805db6e555f42cfc.tar.gz |
Create ListOptions and rename LSRemote to List.
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -728,9 +728,9 @@ func (r *Remote) buildFetchedTags(refs memory.ReferenceStorage) (updated bool, e return } -// LSRemote performs ls-remote on the remote. -func (r *Remote) LSRemote(auth transport.AuthMethod) ([]*plumbing.Reference, error) { - s, err := newUploadPackSession(r.c.URLs[0], auth) +// List the references on the remote repository. +func (r *Remote) List(o *ListOptions) ([]*plumbing.Reference, error) { + s, err := newUploadPackSession(r.c.URLs[0], o.Auth) if err != nil { return nil, err } |