From: Gianni Ceccarelli <dakkar@thenautilus.net>
To: cgit@lists.zx2c4.com
Subject: Re: Greater use of the HTML title (for tabs and title bars) in cgit
Date: Sun, 6 Nov 2022 13:53:06 +0000 [thread overview]
Message-ID: <20221106135306.07adfe6d@thenautilus.net> (raw)
In-Reply-To: <Y2esKjPPoorPHnps@donbot>
On 2022-11-06 John Keeping <john@metanate.com> wrote:
> > * the branch (not main)
>
> Git commits are not associated with a branch, so unless we have an
> h=... query argument I don't see any way to derive the correct value
> to display for a branch.
We could do the equivalent of ``git branch --contains $commit``, but:
- it's expensive
- it returns a list of heads
So I agree that the best source of branch name is the ``h=`` argument.
--
Dakkar - <Mobilis in mobile>
GPG public key fingerprint = A071 E618 DD2C 5901 9574
6FE2 40EA 9883 7519 3F88
key id = 0x75193F88
next prev parent reply other threads:[~2022-11-06 13:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-06 11:01 Graham Perrin
2022-11-06 12:44 ` John Keeping
2022-11-06 13:53 ` Gianni Ceccarelli [this message]
2022-11-06 14:06 ` june
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=20221106135306.07adfe6d@thenautilus.net \
--to=dakkar@thenautilus.net \
--cc=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).