code.gitea.io/gitea@v1.22.3/modules/gitrepo/walk_nogogit.go (about) 1 // Copyright 2024 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 //go:build !gogit 5 6 package gitrepo 7 8 import ( 9 "context" 10 11 "code.gitea.io/gitea/modules/git" 12 ) 13 14 // WalkReferences walks all the references from the repository 15 func WalkReferences(ctx context.Context, repo Repository, walkfn func(sha1, refname string) error) (int, error) { 16 return git.WalkShowRef(ctx, repoPath(repo), nil, 0, 0, walkfn) 17 }