gitea/modules/context
Giteabot 8c6464e39b
Add support for HEAD ref in /src/branch and /src/commit routes () ()
Backport  by @rbhz

Add support for HEAD in paths:
```
/src/branch/HEAD/README.md
/src/commit/HEAD/README.md
```

Closes 

Co-authored-by: Kirill Sorokin <48334247+rbhz@users.noreply.github.com>
..
access_log.go Replace `interface{}` with `any` ()
api.go More refactoring of `db.DefaultContext` ()
api_org.go Implement FSFE REUSE for golang files ()
api_test.go Implement FSFE REUSE for golang files ()
base.go Introduce ctx.PathParamRaw to avoid incorrect unescaping ()
captcha.go Replace `interface{}` with `any` ()
context.go Make web context initialize correctly for different cases ()
context_cookie.go Improve Gitea's web context, decouple "issue template" code into service package ()
context_model.go Improve Gitea's web context, decouple "issue template" code into service package ()
context_request.go Decouple the different contexts from each other ()
context_response.go Start using template context function ()
context_template.go Start using template context function ()
context_test.go Use standard HTTP library to serve files ()
csrf.go Refactor cookie ()
org.go Another round of `db.DefaultContext` refactor () ()
package.go Make web context initialize correctly for different cases ()
pagination.go Replace `interface{}` with `any` ()
permission.go Add context parameter to some database functions ()
private.go Replace `interface{}` with `any` ()
repo.go Add support for HEAD ref in /src/branch and /src/commit routes () ()
response.go Refactor web package and context package ()
utils.go Avoid double-unescaping of form value ()
xsrf.go Update gitea-vet to check FSFE REUSE ()
xsrf_test.go Update gitea-vet to check FSFE REUSE ()