Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unexport fields in Serverv0.1.24 | Runxi Yu | 2025-04-05 | 1 | -1/+1 |
| | |||||
* | Move things to internal/v0.1.23 | Runxi Yu | 2025-04-05 | 1 | -2/+2 |
| | |||||
* | Use cmd/forge for the entry point | Runxi Yu | 2025-04-05 | 1 | -3/+3 |
| | |||||
* | config shall no longer be a global variable | Runxi Yu | 2025-04-05 | 1 | -3/+3 |
| | |||||
* | misc: Move url.go into the misc package | Runxi Yu | 2025-04-05 | 1 | -1/+2 |
| | |||||
* | HTTP: Replace if-else chain with switch | Runxi Yu | 2025-04-05 | 1 | -3/+4 |
| | |||||
* | Refactor git2d comms to ./git2c | Runxi Yu | 2025-04-05 | 1 | -102/+17 |
| | |||||
* | Reduce unnecessary allocations when converting []byte to stringv0.1.22 | Runxi Yu | 2025-04-05 | 1 | -2/+2 |
| | |||||
* | Reduce allocations when converting string to []byte | Runxi Yu | 2025-04-05 | 1 | -2/+2 |
| | |||||
* | Be a bit more careful handling size integer overflows and suchv0.1.19 | Runxi Yu | 2025-04-05 | 1 | -1/+1 |
| | |||||
* | HTTP: Use range in for loops over integers | Runxi Yu | 2025-04-05 | 1 | -1/+1 |
| | |||||
* | HTTP: Avoid an sprintf | Runxi Yu | 2025-04-05 | 1 | -1/+1 |
| | |||||
* | HTTP: Make the tree and raw endpoints use git2d | Runxi Yu | 2025-04-05 | 1 | -63/+96 |
| | |||||
* | HTTP: Serve raw blobs with application/octet-stream | Runxi Yu | 2025-04-03 | 1 | -0/+1 |
| | | | | | | | | | So we don't get XSSed. Might be useful to use heuristics to detect whether it's displayable as text/plain, though. Fixes: https://todo.sr.ht/~runxiyu/forge/20#event-411435 | ||||
* | Add descriptive comments to most Go functions | Runxi Yu | 2025-03-31 | 1 | -0/+2 |
| | |||||
* | Replace FileContributor with FileCopyrightText | Runxi Yu | 2025-03-31 | 1 | -1/+1 |
| | |||||
* | Avoid allocations by using unsafe strinng/bytes conversions | Runxi Yu | 2025-03-30 | 1 | -1/+1 |
| | |||||
* | Lint and add CI | Runxi Yu | 2025-03-27 | 1 | -1/+1 |
| | |||||
* | Use cache for raw files too | Runxi Yu | 2025-03-25 | 1 | -1/+31 |
| | |||||
* | Use a custom errPage500 | Runxi Yu | 2025-03-22 | 1 | -5/+5 |
| | |||||
* | Variable name lengths | Runxi Yu | 2025-03-22 | 1 | -10/+10 |
| | |||||
* | Fix tree/raw redirection and disallow slashes in their path segments | Runxi Yu | 2025-03-22 | 1 | -5/+2 |
| | |||||
* | Remove underscores from Go code, pt 6 | Runxi Yu | 2025-03-19 | 1 | -17/+17 |
| | |||||
* | Remove underscores from Go code, pt 5 | Runxi Yu | 2025-03-19 | 1 | -3/+3 |
| | |||||
* | Remove underscores from Go code, pt 4 | Runxi Yu | 2025-03-19 | 1 | -2/+2 |
| | |||||
* | Remove underscores from Go code, pt 3 | Runxi Yu | 2025-03-19 | 1 | -2/+2 |
| | |||||
* | repo/*: Use var instead of := | Runxi Yu | 2025-03-05 | 1 | -15/+19 |
| | |||||
* | Add SPDX license headers to all Go files | Runxi Yu | 2025-03-03 | 1 | -0/+3 |
| | |||||
* | http: Refactor more handler code duplication into the router | Runxi Yu | 2025-02-18 | 1 | -9/+2 |
| | |||||
* | http_handle_repo_*.go: Remove redundant return | Runxi Yu | 2025-02-14 | 1 | -1/+0 |
| | |||||
* | http_*.go: Abstract out render_template for deduplication | Runxi Yu | 2025-02-14 | 1 | -5/+2 |
| | |||||
* | http_*: Refactor to reduce duplication | Runxi Yu | 2025-02-14 | 1 | -13/+2 |
| | |||||
* | http_handle_*.go: Fix http.Error calls | Runxi Yu | 2025-02-13 | 1 | -8/+8 |
| | | | | | | 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. | ||||
* | http_*.go: Use http.Error | Runxi Yu | 2025-02-13 | 1 | -9/+9 |
| | |||||
* | repo_index: Add repo descriptions | Runxi Yu | 2025-02-13 | 1 | -1/+2 |
| | |||||
* | http_handle_*.go: Use fmt.Fprintln, not w.Write | Runxi Yu | 2025-02-13 | 1 | -9/+10 |
| | |||||
* | _header.html: Add header | Runxi Yu | 2025-02-13 | 1 | -8/+6 |
| | |||||
* | *.go: Mass rename files for clarity | Runxi Yu | 2025-02-13 | 1 | -0/+90 |