Project

General

Profile

Actions

Feature #19226

open

Add ability to display diff directly in comment

Added by Deoren Moor almost 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

For example, right now we're able to write r12345 and Redmine will parse it and display a link to the revision or changeset. However, it would be useful to be able to use specific syntax to have Redmine display the diff directly in the comment.

Existing format:

existing_diff_view.png

or as CodeRay would display it:

Index: field_format.rb
===================================================================
--- field_format.rb    (revision 12344)
+++ field_format.rb    (revision 12345)
@@ -315,7 +315,7 @@
       end

       def edit_tag(view, tag_id, tag_name, custom_value, options={})
-        view.hidden_field_tag(tag_name, '0') +
+        view.hidden_field_tag(tag_name, '0', :id => nil) +
           view.check_box_tag(tag_name, '1', custom_value.true?, options.merge(:id => tag_id))
       end

Thanks for your consideration!


Files

existing_diff_view.png (18.2 KB) existing_diff_view.png Screenshot of Redmine displaying a diff between specified revision and the previous Deoren Moor, 2015-03-01 07:57
Actions #1

Updated by Deoren Moor almost 10 years ago

Screenshot of Redmine displaying a diff between specified revision and the previous

Not sure what happened in the OP. Bad copy/paste I guess.

Actions #2

Updated by Jean-Philippe Lang almost 10 years ago

  • Description updated (diff)
Actions #3

Updated by Toshi MARUYAMA over 9 years ago

  • Category set to Text formatting
Actions

Also available in: Atom PDF