List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: [PATCH 0/2] Custom snapshot prefix
Date: Sat, 31 Mar 2018 14:36:24 +0100	[thread overview]
Message-ID: <cover.1522502527.git.john@keeping.me.uk> (raw)

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



             reply	other threads:[~2018-03-31 13:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-31 13:36 john [this message]
2018-03-31 13:36 ` [PATCH 1/2] ui-shared: pass repo object to print_snapshot_links() john
2018-03-31 13:36 ` [PATCH 2/2] Add "snapshot-prefix" repo configuration john
2018-03-31 14:25 ` [PATCH v2 0/3] Custom snapshot prefix john
2018-03-31 14:25   ` [PATCH v2 1/3] ui-shared: pass repo object to print_snapshot_links() john
2018-03-31 14:25   ` [PATCH v2 2/3] ui-snapshot: pass repo into get_ref_from_filename() john
2018-03-31 14:25   ` [PATCH v2 3/3] Add "snapshot-prefix" repo configuration john

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1522502527.git.john@keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).