aboutsummaryrefslogtreecommitdiff
path: root/http_handle_repo_tree.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-04-05templates shall no longer be a global variableRunxi Yu1-5/+5
2025-04-05web: Separate HTTP error pages into its own packageRunxi Yu1-3/+4
2025-04-05Unexport fields in Serverv0.1.24Runxi Yu1-1/+1
2025-04-05Move things to internal/v0.1.23Runxi Yu1-2/+2
2025-04-05Use cmd/forge for the entry pointRunxi Yu1-3/+3
2025-04-05config shall no longer be a global variableRunxi Yu1-3/+3
2025-04-05Separate code/README rendering and unsafe to their own packagesRunxi Yu1-1/+2
2025-04-05HTTP: Replace if-else chain with switchRunxi Yu1-3/+4
2025-04-05Refactor git2d comms to ./git2cRunxi Yu1-100/+17
2025-04-05Reduce unnecessary allocations when converting []byte to stringv0.1.22Runxi Yu1-2/+2
2025-04-05Reduce allocations when converting string to []byteRunxi Yu1-2/+2
2025-04-05Be a bit more careful handling size integer overflows and suchv0.1.19Runxi Yu1-1/+1
2025-04-05HTTP: Use range in for loops over integersRunxi Yu1-1/+1
2025-04-05HTTP: Avoid an sprintfRunxi Yu1-1/+1
2025-04-05HTTP: Make the tree and raw endpoints use git2dRunxi Yu1-127/+95
2025-03-31Add descriptive comments to most Go functionsRunxi Yu1-0/+4
2025-03-31Replace FileContributor with FileCopyrightTextRunxi Yu1-1/+1
2025-03-30Avoid allocations by using unsafe strinng/bytes conversionsRunxi Yu1-1/+1
2025-03-27Lint and add CIRunxi Yu1-1/+1
2025-03-27LintRunxi Yu1-6/+1
2025-03-25Cache file viewRunxi Yu1-4/+15
2025-03-25Cache dir view in tree viewRunxi Yu1-31/+50
2025-03-22Reuse the cache for /treeRunxi Yu1-43/+78
2025-03-22Use a custom errPage500Runxi Yu1-7/+7
2025-03-22Variable name lengthsRunxi Yu1-12/+12
2025-03-22Fix tree/raw redirection and disallow slashes in their path segmentsRunxi Yu1-2/+1
2025-03-19Remove underscores from Go code, pt 4Runxi Yu1-36/+36
2025-03-19Remove underscores from Go code, pt 3Runxi Yu1-2/+2
2025-03-06repo/tree, readme: nosec G203Runxi Yu1-1/+1
2025-03-05repo/*: Use var instead of :=Runxi Yu1-22/+31
2025-03-03Add SPDX license headers to all Go filesRunxi Yu1-0/+3
2025-02-18http: Refactor more handler code duplication into the routerRunxi Yu1-7/+2
2025-02-14http_handle_repo_*.go: Remove redundant returnRunxi Yu1-1/+0
2025-02-14http_*.go: Abstract out render_template for deduplicationRunxi Yu1-10/+3
2025-02-14http_*: Refactor to reduce duplicationRunxi Yu1-12/+2
2025-02-13http_handle_*.go: Fix http.Error callsRunxi Yu1-11/+11
Previously when I was converting the fmt.Fprintln calls into http.Error, there was a mistake in my sed command which caused some of the messages to have double colons. This should fix them.
2025-02-13http_*.go: Use http.ErrorRunxi Yu1-12/+11
2025-02-13repo_index: Add repo descriptionsRunxi Yu1-1/+3
2025-02-13http_handle_*.go: Use fmt.Fprintln, not w.WriteRunxi Yu1-11/+12
2025-02-13_header.html: Add headerRunxi Yu1-11/+9
2025-02-13*.go: Mass rename files for clarityRunxi Yu1-0/+0
2025-02-12{ssh,global}.go, index.html: Add global data containing ssh fpRunxi Yu1-0/+1
2025-02-12*.go: Use the database for repo info, and fix ssh cloning repoRunxi Yu1-1/+1
2025-02-12*: Migrate to the new path schemeRunxi Yu1-3/+3
2025-02-12render_readme.go: Render plain READMEs tooRunxi Yu1-1/+1
2025-02-11*.go: Remove extra TODOsRunxi Yu1-1/+0
2025-02-11*: Use URL params to specify commits/branches/tagsRunxi Yu1-6/+14
2025-02-11*.go: ReformatRunxi Yu1-1/+1
2025-02-11repo_{raw,tree}: Redirect if visiting file but path_spec ends with slashRunxi Yu1-0/+4
2025-02-11*.go: ReformatRunxi Yu1-4/+4