gitea/services/repository
Dan Čermák b8c9a0c323
Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770)
The merge-upstream route was so far performing any kind of merge, even
those that would create merge commits and thus make your branch diverge
from upstream, requiring manual intervention via the git cli to undo the
damage.

With the new optional parameter ff_only, we can instruct gitea to error
out, if a non-fast-forward merge would be performed.
2025-06-19 12:29:10 +07:00
..
archiver Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
commitstatus Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
files Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
gitgraph Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
adopt.go Replace update repository function in some places (#34566) 2025-06-17 09:54:25 +07:00
adopt_test.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +07:00
avatar.go Only git operations should update `last changed` of a repository (#34388) 2025-05-11 19:18:46 +07:00
avatar_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
branch.go Fix incorrect divergence cache after switching default branch (#34370) 2025-05-08 18:00:29 +07:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +07:00
check.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
collaboration.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +07:00
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +07:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +07:00
contributors_graph.go Remove context from git struct (#33793) 2025-03-04 11:56:11 +07:00
contributors_graph_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 +07:00
create.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
create_test.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
delete.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
delete_test.go Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +07:00
fork.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
fork_test.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
generate.go Replace update repository function in some places (#34566) 2025-06-17 09:54:25 +07:00
generate_test.go Fix some trivial problems (#34579) 2025-06-02 15:22:43 +07:00
hooks.go Don't create duplicated functions for code repositories and wiki repositories (#33924) 2025-03-19 11:17:19 +07:00
init.go Improve instance wide ssh commit signing (#34341) 2025-06-11 10:32:55 +07:00
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +07:00
lfs_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +07:00
license.go Only keep popular licenses (#33832) 2025-03-10 06:40:37 +07:00
license_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +07:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +07:00
merge_upstream.go Add ff_only parameter to POST /repos/{owner}/{repo}/merge-upstream (#34770) 2025-06-19 12:29:10 +07:00
migrate.go Replace update repository function in some places (#34566) 2025-06-17 09:54:25 +07:00
push.go Fix ghost user in feeds when pushing in an actions, it should be gitea-actions (#34703) 2025-06-17 23:44:35 +07:00
repo_team.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +07:00
repo_team_test.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +07:00
repository.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
repository_test.go Move and rename UpdateRepository (#34136) 2025-04-12 18:22:18 +07:00
setting.go Fix auto concurrency cancellation skips commit status updates (#33764) 2025-03-10 15:58:48 +07:00
template.go Remove unused param `doer` (#34545) 2025-06-18 03:12:16 +07:00
transfer.go Only git operations should update `last changed` of a repository (#34388) 2025-05-11 19:18:46 +07:00
transfer_test.go Check user/org repo limit instead of doer (#34147) 2025-04-07 23:45:31 +07:00