Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct Options type and add documentation
  • Loading branch information
codeaucafe committed Jul 28, 2021
commit c5cb4b2238e61e880f11fbbfaadee81c84ae57f5
4 changes: 3 additions & 1 deletion repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ func (r *Repository) WriteFileBlob(ro *RepositoryBlobWriteOptions) error {
return err
}

func (r *Repository) ListRefs(rbo *RepositoryBranchOptions) (*RepositoryRefs, error) {
// ListRefs gets all refs in the Bitbucket repository and returns them as a RepositoryRefs.
// It takes in a RepositoryRefOptions instance as its only parameter.
func (r *Repository) ListRefs(rbo *RepositoryRefOptions) (*RepositoryRefs, error) {

params := url.Values{}
if rbo.Query != "" {
Expand Down