From 54926a719de46b3c359f2f7ce3c29ff4fe55397b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Mar 2025 11:20:24 +0800 Subject: Remove underscores from Go code, pt 3 --- git_ref.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_ref.go') diff --git a/git_ref.go b/git_ref.go index 65b90bf..ab8e35d 100644 --- a/git_ref.go +++ b/git_ref.go @@ -8,9 +8,9 @@ import ( "github.com/go-git/go-git/v5/plumbing" ) -// get_ref_hash_from_type_and_name returns the hash of a reference given its +// getRefHash returns the hash of a reference given its // type and name as supplied in URL queries. -func get_ref_hash_from_type_and_name(repo *git.Repository, ref_type, ref_name string) (ref_hash plumbing.Hash, err error) { +func getRefHash(repo *git.Repository, ref_type, ref_name string) (ref_hash plumbing.Hash, err error) { var ref *plumbing.Reference switch ref_type { case "": -- cgit v1.2.3