Greater use of the HTML title (for tabs and title bars) in cgit

John Keeping john at metanate.com
Sun Nov 6 12:44:26 UTC 2022


Hi Graham,

On Sun, Nov 06, 2022 at 11:01:25AM +0000, Graham Perrin wrote:
> <https://lists.zx2c4.com/pipermail/cgit/2016-June/003088.html> for 1.0
> included:
> 
> > * Show reverse paths in title bar so that browser tab shows filename.
> 
> Please, are there plans to broaden/refine use of titles?

There are no plans - but patches are welcome :-)

> Early thoughts (with examples):
> 
> The title of <https://cgit.freebsd.org/src/commit/?id=a1017358b35e81ce2057ebf06d00b83cdb7f9ac9>
> could show:
> 
> * part of the first (summary) line of the message, abbreviated … if more
> than fifty characters

This seems useful and is probably easy to add.

> * 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.


Regards,
John


More information about the CGit mailing list