You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
a1012112796 3705168837
Add agit flow support in gitea (#14295)
* feature: add agit flow support

ref: https://git-repo.info/en/2020/03/agit-flow-and-git-repo/

example:

```Bash
git checkout -b test
echo "test" >> README.md
git commit -m "test"
git push origin HEAD:refs/for/master -o topic=test
```

Signed-off-by: a1012112796 <1012112796@qq.com>

* fix lint

* simplify code add fix some nits

* update merge help message

* Apply suggestions from code review. Thanks @jiangxin

* add forced-update message

* fix lint

* splite writePktLine

* add refs/for/<target-branch>/<topic-branch> support also

* Add test code add fix api

* fix lint

* fix test

* skip test if git version < 2.29

* try test with git 2.30.1

* fix permission check bug

* fix some nit

* logic implify and test code update

* fix bug

* apply suggestions from code review

* prepare for merge

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix permission check bug

- test code update
- apply suggestions from code review @zeripath

Signed-off-by: a1012112796 <1012112796@qq.com>

* fix bug when target branch isn't exist

* prevent some special push and fix some nits

* fix lint

* try splite

* Apply suggestions from code review

- fix permission check
- handle user rename

* fix version negotiation

* remane

* fix template

* handle empty repo

* ui: fix  branch link under the title

* fix nits

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
..
analyze Speed up `enry.IsVendor` (#15213) 3 years ago
auth Refactor: Move login out of models (#16199) 3 years ago
avatar Add Image Diff for SVG files (#14867) 3 years ago
base Fixed assert statements. (#16089) 3 years ago
cache Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
charset Refactor renders (#15175) 3 years ago
context Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
convert Add agit flow support in gitea (#14295) 3 years ago
cron Refactor: Move login out of models (#16199) 3 years ago
csv Refactor renders (#15175) 3 years ago
doctor Restore creation of git-daemon-export-ok files (#16508) 3 years ago
emoji Run processors on whole of text (#16155) 3 years ago
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
generate switch to maintained lib (#16532) 3 years ago
git Add agit flow support in gitea (#14295) 3 years ago
gitgraph Fix bug on commit graph (#15517) 3 years ago
graceful Support HTTP/2 in Let's Encrypt (#16371) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Replace ARCCache with TwoQueueCache to avoid patent issue (#16240) 3 years ago
httpcache Add ETag header (#15370) 3 years ago
httplib Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
indexer Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
json Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
lfs Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
log Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
markup modules/markup/markdown: fix dropped test error (#16438) 3 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
nosql Fix setting redis db path (#15698) 3 years ago
notification Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof Add golangci (#6418) 5 years ago
private Add agit flow support in gitea (#14295) 3 years ago
process Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
public Improve assets handler middleware (#15961) 3 years ago
queue Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
recaptcha Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repofiles Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repository Add agit flow support in gitea (#14295) 3 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
session Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
setting Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
ssh Second attempt at preventing zombies (#16326) 3 years ago
storage Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
structs Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
templates Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
test Move middlewares to web/middleware (#14480) 3 years ago
timeutil Fix display since time round (#14226) 3 years ago
translation Use index of the supported tags to choose user lang (#15452) 3 years ago
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Handle too long PR titles correctly (#16517) 3 years ago
validation Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
web Restore CORS on git smart http protocol (#16496) 3 years ago