Edgewall Software
Modify

Opened 6 years ago

Last modified 6 years ago

#11903 new enhancement

Create Diff macro

Reported by: lkraav <leho@…> Owned by:
Priority: normal Milestone: next-major-releases
Component: version control Version:
Severity: normal Keywords: macro
Cc: Ryan J Ollos Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Peter Suter)

I'm thinking something like this for a macro

[[Diff(repository:revision)]] 

It can be used for avoiding pasting code into wiki when documenting examples and also as a lightweight, model-free code review tool in ticket comments. With psuter's autocomplete magic from th:WikiAutoCompletePlugin picking a revision to use for the macro could be a really nice experience.

If it was so smart to accept a path as optional argument, one could display exactly what is shown at corresponding Trac browser pages when showing diffs reduced to a directory or file.

Related #11865

Trac-users discussion link

Attachments (0)

Change History (2)

comment:1 by Ryan J Ollos, 6 years ago

Cc: Ryan J Ollos added
Milestone: next-major-releases

comment:2 by Peter Suter, 6 years ago

Component: generalversion control
Description: modified (diff)
Keywords: macro added

(Two other version control macros are RepositoryIndex and CommitTicketReferenceMacro.)

There's PatchRenderer for e.g. attached patches and usable as a wiki processor:

{{{#!diff
}}}

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.