Edgewall Software

Opened 9 years ago

Last modified 3 years ago

#11903 closed enhancement

Create Diff macro — at Version 2

Reported by: lkraav <leho@…> Owned by:
Priority: normal Milestone:
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

Change History (2)

comment:1 by Ryan J Ollos, 9 years ago

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

comment:2 by Peter Suter, 9 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
}}}
Note: See TracTickets for help on using tickets.