summaryrefslogtreecommitdiff
path: root/app/controllers/projects/blob_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-291-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-261-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-221-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-111-1/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-261-14/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-261-0/+16
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-021-13/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-241-0/+13
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-241-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-061-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-081-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-181-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-151-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-211-1/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-1/+1
|
* Use ActiveModel's type instead of virtusPeter Leitzen2019-08-201-1/+5
| | | | | | The virtus project has been discontinued: https://github.com/solnic/virtus/commit/a6f896984
* Expand FindCommit caching to blob and refssh-improve-find-commit-cachingStan Hu2019-04-061-0/+2
| | | | | | | | | | | This enables FindCommit caching to the following actions: * BlobController#show * RefsController#logs_tree It also improves caching in CommitsController since some duplicate requests were occuring inside the before_action definitions.
* Allow streaming io objects into GitalyBob Van Landuyt2019-04-011-2/+1
| | | | | | | | This allows us to set the encoding of an IO passed without reading it into memory. This is useful if we want to stream files into Gitaly. Like we do when uploading a new file to the repository.
* Externalize strings in projects controllersMartin Wortschack2019-03-271-2/+2
| | | | | | | - concerns - dashboard - groups - import
* Move diff_line preparation into presenterMark Chao2019-03-071-35/+4
| | | | Update spec
* Fix spec description and outdated commentsMark Chao2019-03-061-2/+0
|
* Add full option for blob diff actionMark Chao2019-03-061-14/+5
| | | | Returns all diff lines for frontend if full is true. Turn UnfoldForm into presenter, and move controller logic to presenter.
* Fix several ActionController::Parameters deprecationsJasper Maes2019-01-111-1/+1
|
* Fixing image lfs bug and also displaying text lfsFrancisco Javier López2018-12-271-1/+1
| | | | | | | | | | | This commit, introduced in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/23812, fixes a problem creating a displaying image diff notes when the image is stored in LFS. The main problem was that `Gitlab::Diff::File` was returning an invalid valid in `text?` for this kind of files. It also fixes a rendering problem with other LFS files, like text ones. They LFS pointer shouldn't be shown when LFS is enabled for the project, but they were.
* Revert "[Rails5] Explicitly set request.format for blob_controller"Douwe Maan2018-12-031-13/+0
| | | | | | | This reverts commit 037334d2f29fbb14d5e366a7b892a75631eb9ace. # Conflicts: # app/controllers/projects/blob_controller.rb
* render :nothing option is deprecated, Use head method to respond with empty ↵Jasper Maes2018-11-231-1/+1
| | | | response body.
* Remove 'comment_on_any_diff_line' feature flagosw-remove-comment-on-any-diff-line-ffOswaldo Ferreira2018-11-141-6/+1
|
* Comment on any expanded diff line on MRsosw-comment-on-any-line-on-diffs-w-feature-flagOswaldo Ferreira2018-11-091-1/+6
|
* Revert "Merge branch 'osw-comment-on-any-line-on-diffs' into 'master'"osw-revert-comment-in-any-diff-lineOswaldo Ferreira2018-11-071-1/+1
| | | | | This reverts commit a82a595728d54bdc12e51dfcfb22e9eddc449143, reversing changes made to e7df959b8f99875edd246c7ac7779c3203e8755e.
* Merge branch 'osw-comment-on-any-line-on-diffs' into 'master'Douwe Maan2018-11-071-1/+1
|\ | | | | | | | | Comment on any expanded diff line on MRs See merge request gitlab-org/gitlab-ce!22398
| * Comment on any expanded diff line on MRsOswaldo Ferreira2018-11-061-1/+1
| |
* | Make Highlight accept language paramMark Chao2018-10-301-1/+1
|/ | | | | | | | | | This replaces the repository param. This allows more flexiblity as sometimes we have highlight content not related to repository. Sometimes we know ahead of time the language of the content. Lastly language determination seems better fit as a logic in the Blob class. `repository` param is only used to determine the language, which seems to be the responsiblity of Blob.
* Rails5: fix delete blobJasper Maes2018-10-181-1/+1
|
* Resolve "In web editor, when delete a file, should navigate to enclosing ↵George Thomas2018-10-171-4/+14
| | | | directory"
* Enable even more frozen string in app/controllersgfyoung2018-09-251-0/+2
| | | | | | | | | | | | Enables frozen string for some vestigial files as well as the following: * app/controllers/projects/**/*.rb * app/controllers/sherlock/**/*.rb * app/controllers/snippets/**/*.rb * app/controllers/users/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Use a serializer to render diff linesFelipe Artur2018-08-311-1/+1
|
* Changes tab VUE refactoringFelipe Artur2018-06-211-2/+42
|
* Merge branch 'blackst0ne-rails5-fix-blob-requests-format' into 'master'Rémy Coutable2018-06-181-0/+13
|\ | | | | | | | | | | | | [Rails5] Explicitly set request.format for blob_controller Closes #47921 See merge request gitlab-org/gitlab-ce!19876
| * [Rails5] Explicitly set request.format for blob_controllerblackst0ne-rails5-fix-blob-requests-formatblackst0ne2018-06-151-0/+13
| | | | | | | | | | | | | | | | | | | | In Rails 4.2 if params[:format] is empty, Rails set it to :html But since Rails 5.0 the framework now looks for an extension. E.g. for `blob/master/CHANGELOG.md` in Rails 4 the format would be `:html`, but in Rails 5 on it'd be `:md` This commit explicitly sets the `:html` format for all requests unless `:format` is set by a client e.g. by JS for XHR requests.
* | only return last_commit_sha in the JSONide-add-last-commit-id-to-api-callPhil Hughes2018-06-151-2/+2
| |
* | IDE sends last commit ID when committing changesPhil Hughes2018-06-151-0/+2
| | | | | | | | Closes #46192
* | Reuse viewer param and move logic to blob controllerDouwe Maan2018-06-151-5/+6
|/
* Allow maintainers to edit directly in a forkBob Van Landuyt2018-03-071-2/+6
|
* Replace deprecated name_with_namespace with full_name in app and specDmitriy Zaporozhets2018-03-051-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Port `read_cross_project` ability from EEBob Van Landuyt2018-02-221-1/+1
|
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* Remove a redundant `InvalidPathError` definitionrs-remove-useless-definitionRobert Speicher2017-12-201-5/+0
| | | | | This is already defined in `ExtractsPath`, which this controller includes.
* fixed bug with tabs not switching correctlyPhil Hughes2017-10-231-0/+1
| | | | clears all tmp files after cancelling edit mode