gitea/services/repository
zeripath eb748f5f3c
Add apply-patch, basic revert and cherry-pick functionality ()
This code adds a simple endpoint to apply patches to repositories and
branches on gitea. This is then used along with the conflicting checking
code in  to provide a basic implementation of cherry-pick revert.

Now because the buttons necessary for cherry-pick and revert have 
required us to create a dropdown next to the Browse Source button
I've also implemented Create Branch and Create Tag operations.

Fix  
Fix  

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
archiver Pause queues ()
files Add apply-patch, basic revert and cherry-pick functionality ()
adopt.go Delete old git.NewCommand() and use it as git.NewCommandContext() ()
adopt_test.go format with gofumpt ()
avatar.go Some repository refactors ()
avatar_test.go Some repository refactors ()
branch.go Propagate context and ensure git commands run in request context ()
cache.go Move repository model into models/repo ()
check.go Delete old git.NewCommand() and use it as git.NewCommandContext() ()
fork.go Delete old git.NewCommand() and use it as git.NewCommandContext() ()
fork_test.go Some repository refactors ()
hooks.go Propagate context and ensure git commands run in request context ()
main_test.go Decouple unit test code from business code ()
push.go Pause queues ()
repository.go Propagate context and ensure git commands run in request context ()
template.go Some repository refactors ()
transfer.go Fix rename notification bug ()
transfer_test.go Move repository model into models/repo ()