Refactor editor (#34780)

A complete rewrite
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-06-21 19:20:51 +08:00
1 parent 81adb01713
commit 4fc626daa1
41 files changed
+977 -1638

No files matched your search

+3
View File
@@ -470,6 +470,9 @@ func ChangeFiles(ctx *context.APIContext) {
ctx.APIError(http.StatusUnprocessableEntity, err)
return
}
// FIXME: actually now we support more operations like "rename", "upload"
// FIXME: ChangeFileOperation.SHA is NOT required for update or delete if last commit is provided in the options.
// Need to fully fix them in API
changeRepoFile := &files_service.ChangeRepoFile{
Operation: file.Operation,
TreePath: file.Path,