Edgewall Software
Modify

Opened 10 years ago

Closed 4 years ago

#11903 closed enhancement (duplicate)

Create Diff macro

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

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 10 years ago

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

comment:2 by Peter Suter, 10 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
}}}

comment:3 by Ryan J Ollos, 4 years ago

Milestone: next-major-releases
Resolution: duplicate
Status: newclosed

I've merged the feature request into #13277.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


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