aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'http_handle_repo_tree.go')
-rw-r--r--http_handle_repo_tree.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/http_handle_repo_tree.go b/http_handle_repo_tree.go
index 714ecdd..3e59dab 100644
--- a/http_handle_repo_tree.go
+++ b/http_handle_repo_tree.go
@@ -20,6 +20,10 @@ import (
"github.com/go-git/go-git/v5/plumbing/object"
)
+// httpHandleRepoTree provides a friendly, syntax-highlighted view of
+// individual files, and provides directory views that link to these files.
+//
+// TODO: Do not highlight files that are too large.
func httpHandleRepoTree(writer http.ResponseWriter, request *http.Request, params map[string]any) {
var rawPathSpec, pathSpec string
var repo *git.Repository