Opened 10 years ago
Closed 4 years ago
#11903 closed enhancement (duplicate)
Create Diff macro
Reported by: | 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 )
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 , 10 years ago
Cc: | added |
---|---|
Milestone: | → next-major-releases |
comment:2 by , 10 years ago
Component: | general → version control |
---|---|
Description: | modified (diff) |
Keywords: | macro added |
comment:3 by , 4 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
I've merged the feature request into #13277.
(Two other version control macros are
RepositoryIndex
andCommitTicketReferenceMacro
.)There's PatchRenderer for e.g. attached patches and usable as a wiki processor: