From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- http_handle_repo_info.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'http_handle_repo_info.go') diff --git a/http_handle_repo_info.go b/http_handle_repo_info.go index c4562e5..3f1787e 100644 --- a/http_handle_repo_info.go +++ b/http_handle_repo_info.go @@ -12,6 +12,10 @@ import ( "github.com/jackc/pgx/v5/pgtype" ) +// httpHandleRepoInfo provides advertised refs of a repo for use in Git's Smart +// HTTP protocol. +// +// TODO: Reject access from web browsers. func httpHandleRepoInfo(writer http.ResponseWriter, request *http.Request, params map[string]any) (err error) { groupPath := params["group_path"].([]string) repoName := params["repo_name"].(string) -- cgit v1.2.3