[PATCH] tag-pattern support for tag filtering in summary

Saxon, Will Will.Saxon at viterahealthcare.com
Thu Nov 29 13:39:27 CET 2012


> -----Original Message-----
> From: Sebastian Andrzej Siewior [mailto:sebastian at breakpoint.cc]
> Sent: Thursday, November 29, 2012 3:28 AM
> To: Saxon, Will
> Cc: cgit at hjemli.net
> Subject: Re: [PATCH] tag-pattern support for tag filtering in summary
> 
> On Wed, Nov 28, 2012 at 02:50:55PM -0500, Will Saxon wrote:
> > We make heavy use of tags in our repositories, to assist with
> > cross-repo build tracking and to aid integration with 3rd-party
> > applications. An unfortunate side effect of this is that the summary
> > and log pages for a repo in cgit can become very wide due to the number of
> tags displayed.
> > Since many of the tags are not helpful to a user viewing the repo in
> > cgit, we whitelist only the ones we want to see, by pattern.
> 
> There is an HTML element which can be used to display … once the specified
> width is reached.

What is it? We tried setting the width property on the <td> and <tr> elements in cgit.css, but that was not effective. 

We would like to have a maximum row width, but we also like the ability to only enable certain types of tags. In our case, we have a path element to our tags, e.g. 'release/' and 'build/'. This allows developers to only fetch the tags they care about, and with this patterns change allows us to only show the tags we want to see on the page vs. all tags. I do think it might be better to add a class or id property to the tag links as they are printed, which might let individual users control the display via css.

-Will



More information about the CGit mailing list