This isn't the mechanism Konstantin asked for, but for this particular feature I think this is a better way of achieving the same effect.
I don't see much need for a per-tag configuration option for the snapshot prefix, so this enables it only at the repository level. Please let me know if I've missed something here! John Keeping (2): ui-shared: pass repo object to print_snapshot_links() Add "snapshot-prefix" repo configuration cgit.c | 2 ++ cgit.h | 1 + cgitrc.5.txt | 7 +++++++ ui-commit.c | 3 +-- ui-refs.c | 2 +- ui-shared.c | 16 ++++++++++++---- ui-shared.h | 5 +++-- ui-tag.c | 3 +-- 8 files changed, 28 insertions(+), 11 deletions(-) -- 2.14.1.555.g1b9dbff880.dirty _______________________________________________ CGit mailing list CGit@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/cgit