Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 960fe7b

Browse files
committed
Fix documentation for Notes
It previously said that it returned all references that are branches, but that's not true. Signed-off-by: Morgan Bazalgette <the@howl.moe>
1 parent 0710c6c commit 960fe7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

repository.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,8 @@ func (r *Repository) Branches() (storer.ReferenceIter, error) {
872872
}, refIter), nil
873873
}
874874

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

0 commit comments

Comments
 (0)