gitea/models
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>
2021-07-28 17:42:56 +08:00
..
fixtures Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
migrations Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
access_test.go
access.go
action_list.go
action_test.go
action.go Improve notifications for WIP draft PR's (#14663) 2021-06-23 00:14:22 -04:00
admin_test.go
admin.go
attachment_test.go
attachment.go
avatar_test.go
avatar.go
branches_test.go
branches.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
commit_status_test.go
commit_status.go
consistency_test.go
consistency.go Update milestone counters on new issue. (#16183) 2021-06-21 14:34:58 -04:00
context.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
convert.go just add some unit tests (#16291) 2021-06-29 22:00:02 +01:00
error_oauth2.go
error.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
external_login_user.go
fixture_generation.go
fixture_test.go
gpg_key_add.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key_commit_verification.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key_common.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key_import.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key_test.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key_verify.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
gpg_key.go Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
helper_directory.go
helper_environment.go
helper.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
index_test.go
index.go
issue_assignees_test.go
issue_assignees.go
issue_comment_list.go
issue_comment_test.go
issue_comment.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
issue_dependency_test.go
issue_dependency.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
issue_label_test.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
issue_label.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_milestone_test.go Update milestone counters on new issue. (#16183) 2021-06-21 14:34:58 -04:00
issue_milestone.go Update milestone counters on new issue. (#16183) 2021-06-21 14:34:58 -04:00
issue_reaction_test.go
issue_reaction.go
issue_stopwatch_test.go
issue_stopwatch.go Fix session bugs (#16552) 2021-07-26 23:46:06 +03:00
issue_test.go
issue_tracked_time_test.go
issue_tracked_time.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go Validate Issue Index before querying DB (#16406) 2021-07-12 16:22:27 -04:00
lfs_lock.go
lfs.go
list_options.go Fix list_options GetStartEnd (#16303) 2021-06-29 22:42:23 +01:00
log.go
login_source.go Fix add authentication page (#16543) 2021-07-25 08:09:52 +01:00
main_test.go
migrate.go
models_test.go
models.go Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
notification_test.go
notification.go Improve notifications for WIP draft PR's (#14663) 2021-06-23 00:14:22 -04:00
oauth2_application_test.go
oauth2_application.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
oauth2.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
org_team_test.go
org_team.go
org_test.go Add Visible modes function from Organisation to Users too (#16069) 2021-06-26 20:53:14 +01:00
org.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
project_board.go
project_issue.go
project_test.go
project.go
protected_tag_test.go Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
protected_tag.go Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
pull_list.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
pull_sign.go
pull_test.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
pull.go Add agit flow support in gitea (#14295) 2021-07-28 17:42:56 +08:00
release.go
repo_activity.go
repo_archiver.go Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
repo_avatar.go
repo_branch.go
repo_collaboration_test.go
repo_collaboration.go
repo_generate_test.go
repo_generate.go
repo_indexer.go
repo_issue.go
repo_language_stats.go
repo_list_test.go
repo_list.go not show private user's repo in explore view (#16550) 2021-07-27 00:02:35 +02:00
repo_mirror.go
repo_permission_test.go
repo_permission.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo_pushmirror_test.go
repo_pushmirror.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repo_redirect_test.go
repo_redirect.go
repo_sign.go
repo_test.go
repo_transfer_test.go
repo_transfer.go Retry rename on lock induced failures (#16435) 2021-07-15 11:46:07 -04:00
repo_unit.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
repo_watch_test.go
repo_watch.go
repo.go Fix session bugs (#16552) 2021-07-26 23:46:06 +03:00
review_test.go
review.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
session.go
sql_postgres_with_schema.go
ssh_key_authorized_keys.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_authorized_principals.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_deploy.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_fingerprint.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_parse.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_principals.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
ssh_key_test.go
ssh_key.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
star_test.go
star.go
store.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
task.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
test_fixtures.go
token_test.go
token.go
topic_test.go
topic.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
twofactor.go
u2f_test.go
u2f.go
unit_tests.go Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
unit.go
update.go
upload.go
user_avatar.go
user_follow_test.go
user_follow.go
user_heatmap_test.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
user_heatmap.go Fix heatmap activity (#15252) 2021-06-25 12:59:25 -04:00
user_mail_test.go
user_mail.go Fix activation of primary email addresses (#16385) 2021-07-13 22:59:27 +02:00
user_openid_test.go
user_openid.go
user_redirect_test.go
user_redirect.go
user_test.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
user.go Refactor: Move login out of models (#16199) 2021-07-24 11:16:34 +01:00
userlist_test.go
userlist.go
webhook_test.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
webhook.go Add an abstract json layout to make it's easier to change json library (#16528) 2021-07-24 18:03:58 +02:00
wiki_test.go
wiki.go