forgejo/modules
Gergely Nagy ee39c58120
Convert linguist attribute handling to optional.Option
Based on @KN4CK3R's work in gitea#29267. This drops the custom
`LinguistBoolAttrib` type, and uses `optional.Option` instead. I added
the `isTrue()` and `isFalse()` (function-local) helpers to make the code
easier to follow, because these names convey their goal better than
`v.ValueorDefault(false)` or `!v.ValueOrDefault(true)`.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-02-26 12:52:59 +01:00
..
actions Implement some action notifier functions (#29173) 2024-02-19 22:58:32 +01:00
activitypub
analyze
assetfs
auth
avatar
base Port "Use general token signing secret" 2024-02-19 20:49:37 +01:00
cache
charset [FEAT] Enable ambiguous character detection in configured contexts 2024-02-23 13:12:17 +01:00
container
context Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
contexttest
csv
emoji
eventsource
generate Port "Use general token signing secret" 2024-02-19 20:49:37 +01:00
git Convert linguist attribute handling to optional.Option 2024-02-26 12:52:59 +01:00
gitgraph
gitrepo
graceful
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer
issue/template
json
label
lfs
log
markup [BUG] Restrict when to make link absolute in markdown 2024-02-19 20:56:00 +01:00
mcaptcha
metrics
migration
nosql
optional
options
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository
secret
session
setting Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
sitemap
ssh
storage
structs Allow instance-wide disabling of forking 2024-02-25 12:00:17 +01:00
svg
sync
system
templates Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
test
testlogger
timeutil
translation Improve TrHTML and add more tests (#29228) 2024-02-19 22:58:33 +01:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Port "Use general token signing secret" 2024-02-19 20:49:37 +01:00
validation
web
webhook