/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/serializers/ |
H A D | diff_file_entity.rb | 12 …expose :load_collapsed_diff_url, if: -> (diff_file, options) { options[:merge_request] } do |diff_… 22 old_path: diff_file.old_path, 23 new_path: diff_file.new_path, 36 project_blob_path(project, tree_join(diff_file.content_sha, diff_file.new_path)) 40 image_diff = diff_file.rich_viewer && diff_file.rich_viewer.partial_name == 'image' 41 image_replaced = diff_file.old_content_sha && diff_file.old_content_sha != diff_file.content_sha 51 expose :context_lines_path, if: -> (diff_file, _) { diff_file.text? } do |diff_file| 54 …project_blob_diff_path(diff_file.repository.project, tree_join(diff_file.content_sha, diff_file.fi… 58 …es, using: DiffLineEntity, if: -> (diff_file, options) { inline_diff_view?(options) && diff_file.t… 59 file = conflict_file(options, diff_file) || diff_file [all …]
|
H A D | diff_file_base_entity.rb | 29 old_sha: diff_file.old_blob&.id, 30 new_sha: diff_file.blob&.id 55 old_path, _ = mark_inline_diffs(diff_file.old_path, diff_file.new_path) 60 _, new_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path) 69 options[:environment].external_url_for(diff_file.new_path, diff_file.content_sha) 77 next unless diff_file.blob 107 expose :old_size do |diff_file| 108 diff_file.old_blob&.raw_size 111 expose :new_size do |diff_file| 112 diff_file.new_blob&.raw_size [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/lib/gitlab/diff/ |
H A D | file_spec.rb | 97 let(:diff_lines) { diff_file.diff_lines } 110 diff_file.highlighted_diff_lines 154 expect(diff_file).to be_unfolded 217 … [diff_file.new_content_sha, diff_file.new_path], [diff_file.old_content_sha, diff_file.old_path] 222 old_data = diff_file.old_blob.data 223 data = diff_file.new_blob.data 349 expect(diff_file.file_hash).to eq(Digest::SHA1.hexdigest(diff_file.file_path)) 355 … expect(diff_file.file_identifier_hash).to eq(Digest::SHA1.hexdigest(diff_file.file_identifier)) 707 diff_file.diff.too_large! 725 diff_file.diff.too_large! [all …]
|
H A D | position_spec.rb | 83 diff_file = subject.diff_file(project.repository) 130 diff_file = subject.diff_file(project.repository) 154 diff_file = subject.diff_file(project.repository) 214 diff_file = subject.diff_file(project.repository) 255 diff_file = subject.diff_file(project.repository) 299 diff_file = subject.diff_file(project.repository) 339 diff_file = subject.diff_file(project.repository) 380 diff_file = subject.diff_file(project.repository) 423 diff_file = subject.diff_file(project.repository) 502 diff_file = subject.diff_file(project.repository) [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/views/projects/diffs/ |
H A D | _file.html.haml | 3 - file_hash = hexdigest(diff_file.file_path) 4 - image_diff = diff_file.rich_viewer && diff_file.rich_viewer.partial_name == 'image' 5 - image_replaced = diff_file.old_content_sha && diff_file.old_content_sha != diff_file.content_sha 10 = render "projects/diffs/file_header", diff_file: diff_file, url: "##{file_hash}" 12 - if diff_file.submodule? 16 - unless diff_file.submodule? 23 - if editable_diff?(diff_file) 29 = view_file_button(diff_file.old_content_sha, diff_file.old_path, project, replaced: true) 31 = view_file_button(diff_file.content_sha, diff_file.file_path, project) 32 …= view_on_environment_button(diff_file.content_sha, diff_file.file_path, environment) if environme… [all …]
|
H A D | _file_header.html.haml | 6 - if diff_file.submodule? 11 = submodule_link(diff_file.blob, diff_file.content_sha, diff_file.repository) 13 = copy_file_path_button(diff_file.blob.path) 16 = blob_icon diff_file.b_mode, diff_file.file_path 18 - if diff_file.renamed_file? 19 - old_path, new_path = mark_inline_diffs(diff_file.old_path, diff_file.new_path) 27 = diff_file.file_path 29 - if diff_file.deleted_file? 34 - if diff_file.mode_changed? 36 #{diff_file.a_mode} → #{diff_file.b_mode} [all …]
|
H A D | _text_file.html.haml | 1 - too_big = diff_file.diff_lines.count > Commit.diff_safe_max_lines 8 collection: diff_file.highlighted_diff_lines, 10 locals: { diff_file: diff_file, discussions: @grouped_diff_discussions } 12 - if !diff_file.new_file? && !diff_file.deleted_file? && diff_file.highlighted_diff_lines.any? 13 - last_line = diff_file.highlighted_diff_lines.last
|
H A D | _replaced_image_diff.html.haml | 1 - blob = diff_file.blob 2 - old_blob = diff_file.old_blob 3 - blob_raw_url = diff_file_blob_raw_url(diff_file) 4 - old_blob_raw_url = diff_file_old_blob_raw_url(diff_file) 16 = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) 26 …, position: position, note_type: DiffNote.name, image_path: blob_raw_url, alt: diff_file.new_path } 39 = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) 41 …, position: position, note_type: DiffNote.name, image_path: blob_raw_url, alt: diff_file.new_path } 49 = image_tag(old_blob_raw_url, alt: diff_file.old_path, lazy: false) 50 …, position: position, note_type: DiffNote.name, image_path: blob_raw_url, alt: diff_file.new_path }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/helpers/ |
H A D | diff_helper.rb | 123 …compare_url = submodule_links(diff_file.blob, diff_file.content_sha, diff_file.repository, diff_fi… 149 sha = diff_file.old_content_sha 170 def editable_diff?(diff_file) argument 175 if diff_file.deleted_file? 177 elsif diff_file.new_file? 185 if diff_file.deleted_file? 187 elsif diff_file.new_file? 202 def collapsed_diff_url(diff_file) argument 206 old_path: diff_file.old_path, 207 new_path: diff_file.new_path, [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/views/notify/ |
H A D | repository_push_email.html.haml | 36 = diff_file.old_path 38 = diff_file.old_path 40 = diff_file.new_path 41 - elsif diff_file.new_file? 44 = diff_file.new_path 46 = diff_file.new_path 59 = diff_file.old_path 63 = diff_file.old_path 66 = diff_file.new_path 70 - if diff_file.too_large? [all …]
|
H A D | repository_push_email.text.haml | 19 - if diff_file.deleted_file? 20 \- − #{diff_file.old_path} 21 - elsif diff_file.renamed_file? 22 \- #{diff_file.old_path} → #{diff_file.new_path} 23 - elsif diff_file.new_file? 24 \- + #{diff_file.new_path} 26 \- #{diff_file.new_path} 42 #{diff_file.old_path} → #{diff_file.new_path} 44 = diff_file.new_path 46 - if diff_file.too_large? [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/diff/ |
H A D | highlight_cache.rb | 22 def decorate(diff_file) argument 23 content = read_file(diff_file) 37 new_cache_content[diff_file.file_path] = diff_file.highlighted_diff_lines.map(&:to_hash) 41 set_highlighted_diff_lines(diff_file, read_file(diff_file)) 57 cacheable_files.each do |diff_file| 58 new_cache_content[diff_file.file_path] = diff_file.highlighted_diff_lines.map(&:to_hash) 91 def recache_due_to_size?(diff_file) argument 179 def read_file(diff_file) argument 180 cached_content[diff_file.file_path] 203 def cacheable?(diff_file) argument [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/models/diff_viewer/ |
H A D | base.rb | 19 def initialize(diff_file) argument 20 @diff_file = diff_file 21 @initially_binary = diff_file.binary_in_repo? 44 def self.can_render?(diff_file, verify_binary: true) argument 46 can_render_blob?(diff_file.new_blob, verify_binary: verify_binary) 59 return @collapsed = true if diff_file.collapsed? 61 @collapsed = !diff_file.expanded? && collapse_limit && diff_file.raw_size > collapse_limit 66 return @too_large = true if diff_file.too_large? 68 @too_large = size_limit && diff_file.raw_size > size_limit 72 !@initially_binary && diff_file.binary_in_repo? [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/diff/file_collection/ |
H A D | base.rb | 64 diff_files.each do |diff_file| 65 positions = positions_grouped_by_path.fetch(diff_file.file_path, []) 66 positions.each { |position| diff_file.unfold_diff_lines(position) } 72 … diff_files.find { |diff_file| diff_file.old_path == old_path && diff_file.a_mode == a_mode } 74 diff_files.find { |diff_file| diff_file.old_path == old_path } 80 … diff_files.find { |diff_file| diff_file.new_path == new_path && diff_file.b_mode == b_mode } 82 diff_files.find { |diff_file| diff_file.new_path == new_path }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/models/diff_viewer/ |
H A D | image_spec.rb | 10 subject { described_class.can_render?(diff_file, verify_binary: false) } 13 allow(diff_file).to receive(:old_blob) { nil } 14 allow(diff_file).to receive(:new_blob) { nil } 20 allow(diff_file).to receive(:old_blob) { blob } 21 allow(diff_file).to receive(:new_blob) { nil } 27 allow(diff_file).to receive(:old_blob) { nil } 28 allow(diff_file).to receive(:new_blob) { blob } 34 allow(diff_file).to receive(:old_blob) { blob } 35 allow(diff_file).to receive(:new_blob) { blob }
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/views/discussions/ |
H A D | _diff_with_notes.html.haml | 1 - diff_file = discussion.diff_file 2 - diff_file_class = diff_file.text? ? 'text-file' : 'js-image-file' 11 …= render "projects/diffs/file_header", diff_file: diff_file, url: discussion_path(discussion), sho… 13 - if diff_file.text? 21 locals: { diff_file: diff_file, 36 …- partial = (diff_file.new_file? || diff_file.deleted_file?) ? 'single_image_diff' : 'replaced_ima… 37 …= render partial: "projects/diffs/#{partial}", locals: { diff_file: diff_file, position: discussio…
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/views/projects/diffs/viewers/ |
H A D | _image.html.haml | 1 - diff_file = viewer.diff_file 3 - discussions = @grouped_diff_discussions[diff_file.new_path] if @grouped_diff_discussions 5 - locals = { diff_file: diff_file, position: diff_file.position(image_point, position_type: :image)… 7 - if diff_file.new_file? || diff_file.deleted_file?
|
H A D | _text.html.haml | 1 - diff_file = viewer.diff_file 2 - blob = diff_file.blob 6 = render "projects/diffs/parallel_view", diff_file: diff_file, total_lines: total_lines 8 = render "projects/diffs/text_file", diff_file: diff_file, total_lines: total_lines
|
/dports/games/easyrpg-player/Player-0.7.0/resources/shinonome/tools/ |
H A D | bdfmarge.in | 35 func print_next_char (diff_file, line, flag, ret) { 41 getline line < diff_file; 53 ret = get_next_char(diff_file); 100 diff_file = ARGV[1]; 103 … "grep -h ^ENCODING " diff_file " " ARGV[2] " | sort | uniq | grep -c ^ENCODING" |getline maxchars; 106 print_header(diff_file); 109 next_char = get_next_char(diff_file); 134 next_char = print_next_char(diff_file); 138 next_char = print_next_char(diff_file); 158 next_char = print_next_char(diff_file);
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/ |
H A D | submodule_links.rb | 14 def for(submodule, sha, diff_file = nil) argument 16 old_submodule_id = old_submodule_id(submodule_url, diff_file) 37 def old_submodule_id(submodule_url, diff_file) argument 38 return unless diff_file&.old_blob && diff_file&.old_content_sha 42 old_submodule_url = submodule_url_for(diff_file.old_content_sha, diff_file.old_blob.path) 44 diff_file.old_blob.id if old_submodule_url == submodule_url
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/spec/models/ |
H A D | diff_note_spec.rb | 128 position.diff_file(project.repository) 140 let(:diff_line) { diff_file.diff_lines.first } 255 diff_file = subject.diff_file 269 diff_file = subject.diff_file 283 diff_file = subject.diff_file 305 diff_file = subject.diff_file 307 expect(diff_file.old_path).to eq(position.old_path) 308 expect(diff_file.new_path).to eq(position.new_path) 319 subject.reload.diff_file 329 reply_diff_note.reload.diff_file [all …]
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/lib/gitlab/diff/position_tracer/ |
H A D | line_strategy.rb | 79 diff_file = diff_file(position) 80 b_mode = diff_file&.b_mode 122 diff_file = diff_file(position) 123 a_mode = diff_file&.a_mode 159 diff_file = diff_file(position) 160 a_mode = diff_file&.a_mode 161 b_mode = diff_file&.b_mode 199 def new_position(diff_file, old_line, new_line, line_range = nil) argument 201 diff_file: diff_file,
|
H A D | image_strategy.rb | 10 diff_file = diff_file(position) 11 a_mode = diff_file&.a_mode 12 b_mode = diff_file&.b_mode 41 def new_position(position, diff_file) argument 43 diff_file: diff_file,
|
/dports/www/gitlab-workhorse/gitlab-foss-0a901d60f8ae4a60c04ae82e6e9c3a03e9321417/app/models/ |
H A D | diff_note.rb | 41 diff_file = fetch_diff_file 42 raise NoteDiffFileCreationError, DIFF_FILE_NOT_FOUND_MESSAGE unless diff_file 44 diff_line = diff_file.line_for_position(self.original_position) 47 file_path: diff_file.file_path, 53 creation_params = diff_file.diff.to_hash 55 .merge(diff: diff_file.diff_hunk(diff_line)) 65 position.diff_file(repository) 70 def diff_file method in DiffNote 81 @diff_line ||= diff_file&.line_for_position(self.original_position) 87 self.diff_file.line_code(self.diff_line) [all …]
|
/dports/devel/libgit2/libgit2-1.3.0/tests/apply/ |
H A D | index.c | 145 const char *diff_file = DIFF_MODIFY_TWO_FILES; in test_apply_index__modified_workdir_with_unmodified_index_is_ok() local 172 cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file))); in test_apply_index__modified_workdir_with_unmodified_index_is_ok() 186 const char *diff_file = DIFF_MODIFY_TWO_FILES; in test_apply_index__application_failure_leaves_index_unmodified() local 204 cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file))); in test_apply_index__application_failure_leaves_index_unmodified() 218 const char *diff_file = DIFF_MODIFY_TWO_FILES; in test_apply_index__keeps_nonconflicting_changes() local 243 cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file))); in test_apply_index__keeps_nonconflicting_changes() 258 const char *diff_file = DIFF_MODIFY_TWO_FILES; in test_apply_index__can_apply_nonconflicting_file_changes() local 288 cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file))); in test_apply_index__can_apply_nonconflicting_file_changes() 301 const char *diff_file = DIFF_EXECUTABLE_FILE; in test_apply_index__change_mode() local 314 cl_git_pass(git_diff_from_buffer(&diff, diff_file, strlen(diff_file))); in test_apply_index__change_mode()
|