Refactor web editor
* fix problem with editing non-master branch
* before commit make sure branch exists
* dont allow user change file in one branch and commit to another existing branch
* remove a lot of code duplication
* remove outdated statellite errors
Signed-off-by:
Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
显示
- Gemfile 1 个添加, 1 个删除Gemfile
- Gemfile.lock 2 个添加, 2 个删除Gemfile.lock
- app/controllers/projects/blob_controller.rb 30 个添加, 30 个删除app/controllers/projects/blob_controller.rb
- app/services/files/base_service.rb 70 个添加, 7 个删除app/services/files/base_service.rb
- app/services/files/create_service.rb 10 个添加, 40 个删除app/services/files/create_service.rb
- app/services/files/delete_service.rb 2 个添加, 30 个删除app/services/files/delete_service.rb
- app/services/files/update_service.rb 2 个添加, 40 个删除app/services/files/update_service.rb
- app/views/projects/blob/new.html.haml 6 个添加, 5 个删除app/views/projects/blob/new.html.haml
加载中
想要评论请 注册 或 登录