~sircmpwn/sr.ht-discuss

2 2

git.sr.ht: Show branch in title

Details
Message ID
<ZUiH2lSmaFraZh3g@dj3ntoo>
DKIM signature
missing
Download raw message
Hi,

Currently it looks like git.sr.ht only has the repo + the file/dir in
the page's title. I think it would be useful to also show the branch
name so that it's easier to tell, for example, by hovering over the
browser tab which version is currently open.

As a more concrete example, assume there exists a repo with two
branches: master and cool-feature. If I open a file from both branches
in separate tabs, the titles both look like this:

    ~user/repo: some/file - sourcehut git
    ~user/repo: some/file - sourcehut git

I would propose changing it to something along these lines:

    ~user/repo on master: some/file - sourcehut git
    ~user/repo on cool-feature: some/file - sourcehut git

Thoughts?

- Oskari
Details
Message ID
<CWUZKDRI94L5.1BXHZB1N0DUTN@taiga>
In-Reply-To
<ZUiH2lSmaFraZh3g@dj3ntoo> (view parent)
DKIM signature
missing
Download raw message
I like the idea. Think you can whip up a patch?
Details
Message ID
<ZVAHZn4ZU1hI1U9P@dj3ntoo>
In-Reply-To
<CWUZKDRI94L5.1BXHZB1N0DUTN@taiga> (view parent)
DKIM signature
missing
Download raw message
On Fri, Nov 10, 2023 at 09:24:10 +0100, Drew DeVault wrote:
> I like the idea. Think you can whip up a patch?

I can try, but I'll be on vacation for the next 2 weeks. If someone
beats me to it, that's fine too.

- Oskari
Reply to thread Export thread (mbox)