gitea/modules/structs
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>
..
admin_user.go [API] Add Restricted Field to User ()
attachment.go Fix wrong hint when status checking is running on pull request view ()
commit_status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
cron.go Add cron running API ()
doc.go Move sdk structs to modules/structs ()
fork.go Move sdk structs to modules/structs ()
git_blob.go Move sdk structs to modules/structs ()
git_hook.go Move sdk structs to modules/structs ()
hook.go Migrate to use jsoniter instead of encoding/json ()
issue.go rm gogs relict ()
issue_comment.go Display original author and URL information when showing migrated issues/comments ()
issue_label.go [API] Fix inconsistent label color format ()
issue_milestone.go Add Created & Updated to Milestone ()
issue_reaction.go [API] Fix 9544 | return 200 when reaction already exist ()
issue_stopwatch.go Display current stopwatch in navbar ()
issue_tracked_time.go [API] Extend times API ()
lfs_lock.go Move sdk structs to modules/structs ()
miscellaneous.go API method to list all commits of a repository ()
notifications.go API: NotificationSubject show Issue/Pull State ()
org.go Add teams to repo on collaboration page. ()
org_member.go Move sdk structs to modules/structs ()
org_team.go Add missing repo.projects unit into swagger ()
org_type.go Fixes - API Org Visibility ()
pull.go Add option to API to update PullRequest base branch ()
pull_review.go Expose resolver via API ()
release.go Add single release page and latest redirect ()
repo.go Add LFS Migration and Mirror ()
repo_branch.go Add block on official review requests branch protection ()
repo_collaborator.go Move sdk structs to modules/structs ()
repo_commit.go [API] Add affected files of commits to commit struct ()
repo_file.go enhancement: add signoff option in commit form ()
repo_key.go Move sdk structs to modules/structs ()
repo_refs.go Move sdk structs to modules/structs ()
repo_tag.go Fixes - Adds the /git/tags API endpoint ()
repo_topic.go Add API endpoint for accessing repo topics ()
repo_tree.go Move sdk structs to modules/structs ()
repo_watch.go Move sdk structs to modules/structs ()
settings.go Export LFS & TimeTracking function status ()
status.go [Refactor] CombinedStatus and CommitStatus related functions & structs ()
task.go Move migrating repository from frontend to backend ()
user.go Migrate to use jsoniter instead of encoding/json ()
user_app.go Remove Unused Functions ()
user_email.go Move sdk structs to modules/structs ()
user_gpgkey.go Move sdk structs to modules/structs ()
user_key.go Move sdk structs to modules/structs ()