This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/modules/context
zeripath 9e6e1dc950
Improve checkBranchName (#17901)
The current implementation of checkBranchName is highly inefficient
involving opening the repository, the listing all of the branch names
checking them individually before then using using opened repo to get
the tags.

This PR avoids this by simply walking the references from show-ref
instead of opening the repository (in the nogogit case).

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-08 19:08:16 +00:00
..
access_log.go
api.go Reset locale on login (#17734) 2021-11-20 21:32:37 +00:00
api_org.go Use a standalone struct name for Organization (#17632) 2021-11-19 19:41:40 +08:00
api_test.go
auth.go Move twofactor to models/login (#17143) 2021-09-25 15:00:12 +02:00
captcha.go
context.go Move user related model into models/user (#17781) 2021-11-24 17:49:20 +08:00
csrf.go
form.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 2021-08-11 02:31:13 +02:00
org.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
pagination.go
permission.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
private.go
repo.go Improve checkBranchName (#17901) 2021-12-08 19:08:16 +00:00
response.go
xsrf.go
xsrf_test.go