gitea/models/git
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
..
branch.go Do not mutate incoming options to SearchRepositoryByName (#34553) 2025-06-02 17:33:25 +00:00
branch_list.go Fix branch order (#31174) 2024-05-31 09:58:41 +08:00
branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
commit_status.go Fix actions skipped commit status indicator (#34507) 2025-05-28 11:36:21 -04:00
commit_status_summary.go Fix actions skipped commit status indicator (#34507) 2025-05-28 11:36:21 -04:00
commit_status_test.go Split GetLatestCommitStatus as two functions (#34535) 2025-05-26 19:00:22 +00:00
lfs.go refactor: remove redundant err declarations (#32381) 2024-10-30 19:36:24 +00:00
lfs_lock.go Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-11 14:48:20 +00:00
lfs_lock_list.go Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-11 14:48:20 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go Add priority to protected branch (#32286) 2024-11-27 05:41:06 +01:00
protected_branch_list.go Add priority to protected branch (#32286) 2024-11-27 05:41:06 +01:00
protected_branch_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
protected_branch_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
protected_tag.go Add tag protection via rest api #17862 (#31295) 2024-06-14 18:56:10 +02:00
protected_tag_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00