gitea/routers/web/user/setting
Philip Peterson c5e78fc7ad
Do not mutate incoming options to SearchRepositoryByName (#34553)
Similar to #34544, this PR changes the `opts` argument in
`SearchRepositoryByName()` to be passed by value instead of by pointer,
as its mutations do not escape the function scope and are not used
elsewhere. This simplifies reasoning about the function and avoids
unnecessary pointer usage.

This insight emerged during an initial attempt to refactor
`RenderUserSearch()`, which currently intermixes multiple concerns.

---------

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
2025-06-02 17:33:25 +00:00
..
security Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
account.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
account_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
adopt.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
applications.go feat: Add sorting by exclusive labels (issue priority) (#33206) 2025-04-10 17:18:07 +00:00
block.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
keys.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
main_test.go
oauth2.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
oauth2_common.go refactor organization menu (#33928) 2025-04-10 12:12:55 -07:00
packages.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
profile.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
runner.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
settings.go Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
webhooks.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00