Skip to content

Commit

Permalink
Fix documentation for Notes
Browse files Browse the repository at this point in the history
It previously said that it returned all references that are branches, but that's not true.

Signed-off-by: Morgan Bazalgette <[email protected]>
  • Loading branch information
thehowl committed Jun 16, 2018
1 parent 0710c6c commit 960fe7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,8 @@ func (r *Repository) Branches() (storer.ReferenceIter, error) {
}, refIter), nil
}

// Notes returns all the References that are Branches.
// Notes returns all the References that are notes. For more information:
// https://git-scm.com/docs/git-notes
func (r *Repository) Notes() (storer.ReferenceIter, error) {
refIter, err := r.Storer.IterReferences()
if err != nil {
Expand Down

0 comments on commit 960fe7b

Please sign in to comment.