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_log.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'http_handle_repo_log.go') diff --git a/http_handle_repo_log.go b/http_handle_repo_log.go index 50e4eb1..5c69836 100644 --- a/http_handle_repo_log.go +++ b/http_handle_repo_log.go @@ -10,7 +10,10 @@ import ( "github.com/go-git/go-git/v5/plumbing" ) -// TODO: I probably shouldn't include *all* commits here... +// httpHandleRepoLog provides a page with a complete Git log. +// +// TODO: This currently provides all commits in the branch. It should be +// paginated and cached instead. func httpHandleRepoLog(writer http.ResponseWriter, _ *http.Request, params map[string]any) { var repo *git.Repository var refHash plumbing.Hash -- cgit v1.2.3