gitea/models
KN4CK3R c03e488e14
Add LFS Migration and Mirror ()
* Implemented LFS client.

* Implemented scanning for pointer files.

* Implemented downloading of lfs files.

* Moved model-dependent code into services.

* Removed models dependency. Added TryReadPointerFromBuffer.

* Migrated code from service to module.

* Centralised storage creation.

* Removed dependency from models.

* Moved ContentStore into modules.

* Share structs between server and client.

* Moved method to services.

* Implemented lfs download on clone.

* Implemented LFS sync on clone and mirror update.

* Added form fields.

* Updated templates.

* Fixed condition.

* Use alternate endpoint.

* Added missing methods.

* Fixed typo and make linter happy.

* Detached pointer parser from gogit dependency.

* Fixed TestGetLFSRange test.

* Added context to support cancellation.

* Use ReadFull to probably read more data.

* Removed duplicated code from models.

* Moved scan implementation into pointer_scanner_nogogit.

* Changed method name.

* Added comments.

* Added more/specific log/error messages.

* Embedded lfs.Pointer into models.LFSMetaObject.

* Moved code from models to module.

* Moved code from models to module.

* Moved code from models to module.

* Reduced pointer usage.

* Embedded type.

* Use promoted fields.

* Fixed unexpected eof.

* Added unit tests.

* Implemented migration of local file paths.

* Show an error on invalid LFS endpoints.

* Hide settings if not used.

* Added LFS info to mirror struct.

* Fixed comment.

* Check LFS endpoint.

* Manage LFS settings from mirror page.

* Fixed selector.

* Adjusted selector.

* Added more tests.

* Added local filesystem migration test.

* Fixed typo.

* Reset settings.

* Added special windows path handling.

* Added unit test for HTTPClient.

* Added unit test for BasicTransferAdapter.

* Moved into util package.

* Test if LFS endpoint is allowed.

* Added support for git://

* Just use a static placeholder as the displayed url may be invalid.

* Reverted to original code.

* Added "Advanced Settings".

* Updated wording.

* Added discovery info link.

* Implemented suggestion.

* Fixed missing format parameter.

* Added Pointer.IsValid().

* Always remove model on error.

* Added suggestions.

* Use channel instead of array.

* Update routers/repo/migrate.go

* fmt

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

Co-authored-by: zeripath <art27@cantab.net>
..
fixtures API: fix set milestone on PR creation ()
migrations Add LFS Migration and Mirror ()
access.go chore(models): rewrite code format. ()
access_test.go Fix "access" fixtures and tests ()
action.go Fix timezone bug when clicking heatmap ()
action_list.go refactor: reduce sql query in retrieveFeeds ()
action_test.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL ()
admin.go chore(models): rewrite code format. ()
admin_test.go
attachment.go Add size to Save function ()
attachment_test.go Implement delete release attachments and update release attachments' name ()
avatar.go Fix frontpage avatars ()
avatar_test.go Direct avatar rendering ()
branches.go Add dismiss review feature ()
branches_test.go Add deleted_branch table fixture ()
commit_status.go chore(models): rewrite code format. ()
commit_status_test.go Fix bug about ListOptions and stars/watchers pagnation ()
consistency.go Fix Migration 176 yet again ()
context.go Upgrade xorm to v1.0.2 ()
convert.go Whilst changing the character set to utf8mb4 we should set ROW_FORMAT=dynamic too ()
error.go Ensure validation occurs on clone addresses too ()
error_oauth2.go
external_login_user.go chore(models): rewrite code format. ()
fixture_generation.go chore(models): rewrite code format. ()
fixture_test.go Move fixture generation to contrib and add test ()
gpg_key.go chore(models): rewrite code format. ()
gpg_key_test.go chore(models): rewrite code format. ()
helper.go chore(models): rewrite code format. ()
helper_directory.go Re-attempt to delete temporary upload if the file is locked by another process ()
helper_environment.go chore(models): rewrite code format. ()
issue.go chore(models): rewrite code format. ()
issue_assignees.go chore(models): rewrite code format. ()
issue_assignees_test.go Fix API Bug (fail on empty assignees) ()
issue_comment.go chore(models): rewrite code format. ()
issue_comment_list.go chore(models): rewrite code format. ()
issue_comment_test.go Pull request review/approval and comment on code ()
issue_dependency.go chore(models): rewrite code format. ()
issue_dependency_test.go Refactor comment ()
issue_label.go Delete Labels & IssueLabels on Repo Delete too ()
issue_label_test.go chore(models): rewrite code format. ()
issue_list.go chore(models): rewrite code format. ()
issue_list_test.go Add Organization Wide Labels ()
issue_lock.go chore(models): rewrite code format. ()
issue_milestone.go Add dashboard milestone search and repo milestone search by name ()
issue_milestone_test.go Add name filter to API for GetMilestoneList ()
issue_reaction.go chore(models): rewrite code format. ()
issue_reaction_test.go Migrate reactions when migrating repository from github ()
issue_stopwatch.go chore(models): rewrite code format. ()
issue_stopwatch_test.go Add gitea-vet ()
issue_test.go chore(models): rewrite code format. ()
issue_tracked_time.go chore(models): rewrite code format. ()
issue_tracked_time_test.go chore(models): rewrite code format. ()
issue_user.go Mail assignee when issue/pull request is assigned ()
issue_user_test.go Add "Update Branch" button to Pull Requests ()
issue_watch.go chore(models): rewrite code format. ()
issue_watch_test.go API add/generalize pagination ()
issue_xref.go chore(models): rewrite code format. ()
issue_xref_test.go Refactor comment ()
lfs.go Add LFS Migration and Mirror ()
lfs_lock.go chore(models): rewrite code format. ()
list_options.go Fix bug about ListOptions and stars/watchers pagnation ()
log.go Fix xorm log stack level ()
login_source.go chore(models): rewrite code format. ()
main_test.go Add gitea-vet ()
migrate.go chore(models): rewrite code format. ()
models.go Create Proper Migration Tests ()
models_test.go gitea dump: include version & Check InstallLock ()
notification.go chore(models): rewrite code format. ()
notification_test.go add request review from specific reviewers feature in pull request ()
oauth2.go chore(models): rewrite code format. ()
oauth2_application.go Minimal OpenID Connect implementation ()
oauth2_application_test.go Minimal OpenID Connect implementation ()
org.go chore(models): rewrite code format. ()
org_team.go chore(models): rewrite code format. ()
org_team_test.go chore(models): rewrite code format. ()
org_test.go chore(models): rewrite code format. ()
project.go chore(models): rewrite code format. ()
project_board.go chore(models): rewrite code format. ()
project_issue.go chore(models): rewrite code format. ()
project_test.go chore(models): rewrite code format. ()
pull.go chore(models): rewrite code format. ()
pull_list.go API add/generalize pagination ()
pull_sign.go Add configurable Trust Models ()
pull_test.go Display pull request head branch even the branch deleted or repository deleted ()
release.go Implement delete release attachments and update release attachments' name ()
repo.go Add LFS Migration and Mirror ()
repo_activity.go Add top author stats to activity page ()
repo_avatar.go Avatars and Repo avatars support storing in minio ()
repo_branch.go Move newbranch to standalone package ()
repo_collaboration.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database ()
repo_collaboration_test.go API add/generalize pagination ()
repo_generate.go Fix broken migration on webhook ()
repo_generate_test.go Variable expansion in repository templates ()
repo_indexer.go Index code and stats only for non-empty repositories ()
repo_issue.go Add EnableTimetracking option to app settings ()
repo_language_stats.go chore(models): rewrite code format. ()
repo_list.go Improve /api/v1/repos/issues/search by just getting repo ids ()
repo_list_test.go chore(models): rewrite code format. ()
repo_mirror.go Add LFS Migration and Mirror ()
repo_permission.go ui: show 'owner' tag for real owner ()
repo_permission_test.go fix bug when update owner team then visit team's repo return 404 ()
repo_redirect.go Redirect on changed user and org name ()
repo_redirect_test.go Redirect on changed user and org name ()
repo_sign.go Add configurable Trust Models ()
repo_test.go chore(models): rewrite code format. ()
repo_transfer.go Fix Migration 176 yet again ()
repo_transfer_test.go chore(models): rewrite code format. ()
repo_unit.go Add DefaultMergeStyle option to repository ()
repo_watch.go chore(models): rewrite code format. ()
repo_watch_test.go API add/generalize pagination ()
review.go chore(models): rewrite code format. ()
review_test.go chore(models): rewrite code format. ()
session.go Create DB session provider(based on xorm) ()
sql_postgres_with_schema.go Ensure that schema search path is set with every connection on postgres ()
ssh_key.go chore(models): rewrite code format. ()
ssh_key_test.go Add support for ed25519_sk and ecdsa_sk SSH keys ()
star.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database ()
star_test.go API add/generalize pagination ()
task.go chore(models): rewrite code format. ()
test_fixtures.go Create Proper Migration Tests ()
token.go [API] Delete Token accept names too ()
token_test.go chore(models): rewrite code format. ()
topic.go chore(models): rewrite code format. ()
topic_test.go API add/generalize pagination ()
twofactor.go Attachments: Add extension support, allow all types for releases ()
u2f.go Display ui time with customize time location ()
u2f_test.go Add gitea-vet ()
unit.go Kanban board ()
unit_tests.go chore(models): rewrite code format. ()
update.go Remove Unused Functions ()
upload.go Handle and propagate errors when checking if paths are Dirs, Files or Exist ()
user.go [refactor] mailer service ()
user_avatar.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL ()
user_follow.go Save TimeStamps for Star, Label, Follow, Watch and Collaboration to Database ()
user_follow_test.go Add gitea-vet ()
user_heatmap.go chore(models): rewrite code format. ()
user_heatmap_test.go chore(models): rewrite code format. ()
user_mail.go chore(models): rewrite code format. ()
user_mail_test.go Admin page for managing user e-mail activation ()
user_openid.go chore(models): rewrite code format. ()
user_openid_test.go Add golangci ()
user_redirect.go Redirect on changed user and org name ()
user_redirect_test.go Redirect on changed user and org name ()
user_test.go chore(models): rewrite code format. ()
userlist.go chore(models): rewrite code format. ()
userlist_test.go chore(models): rewrite code format. ()
webhook.go chore(models): rewrite code format. ()
webhook_test.go chore(models): rewrite code format. ()
wiki.go Handle and propagate errors when checking if paths are Dirs, Files or Exist ()
wiki_test.go Move wiki related funtions from models to services/wiki ()