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.
gitea/routers/repo
KN4CK3R c03e488e14
Add LFS Migration and Mirror (#14726)
* 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>
4 years ago
..
activity.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
attachment.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
blame.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
branch.go Move modules/forms to services/forms (#15305) 4 years ago
commit.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
compare.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
download.go Add LFS Migration and Mirror (#14726) 4 years ago
editor.go Move modules/forms to services/forms (#15305) 4 years ago
editor_test.go Add Close() method to gogitRepository (#8901) 5 years ago
http.go Move macaron to chi (#14293) 4 years ago
issue.go Move modules/forms to services/forms (#15305) 4 years ago
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 5 years ago
issue_label.go Move modules/forms to services/forms (#15305) 4 years ago
issue_label_test.go Move modules/forms to services/forms (#15305) 4 years ago
issue_lock.go Move modules/forms to services/forms (#15305) 4 years ago
issue_stopwatch.go Display current stopwatch in navbar (#14122) 4 years ago
issue_test.go Fix bug when combine label comments (#14894) 4 years ago
issue_timetrack.go Move modules/forms to services/forms (#15305) 4 years ago
issue_watch.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
lfs.go Add LFS Migration and Mirror (#14726) 4 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Add gitea-vet (#10948) 5 years ago
migrate.go Add LFS Migration and Mirror (#14726) 4 years ago
milestone.go Add dashboard milestone search and repo milestone search by name (#14866) 4 years ago
projects.go Move modules/forms to services/forms (#15305) 4 years ago
projects_test.go KanBan: be able to set default board (#14147) 4 years ago
pull.go Move modules/forms to services/forms (#15305) 4 years ago
pull_review.go Move modules/forms to services/forms (#15305) 4 years ago
release.go Move modules/forms to services/forms (#15305) 4 years ago
release_test.go Move modules/forms to services/forms (#15305) 4 years ago
repo.go Fix CanCreateRepo check (#15311) 4 years ago
search.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
setting.go Add LFS Migration and Mirror (#14726) 4 years ago
setting_protected_branch.go Move modules/forms to services/forms (#15305) 4 years ago
settings_test.go Move modules/forms to services/forms (#15305) 4 years ago
topic.go [refactor] replace int with httpStatusCodes (#15282) 4 years ago
view.go Add LFS Migration and Mirror (#14726) 4 years ago
webhook.go Move modules/forms to services/forms (#15305) 4 years ago
wiki.go Move modules/forms to services/forms (#15305) 4 years ago
wiki_test.go Move modules/forms to services/forms (#15305) 4 years ago