"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: gotwebd: reduce the number of tags shown on the summary page
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 8 Dec 2023 10:32:42 +0100

Download raw body.

Thread
On Fri, Dec 08, 2023 at 10:07:51AM +0100, Omar Polo wrote:
> like D_MAXSLCOMMDISP this is not yet customizable via gotwebd.conf, but
> showing less tags by default on the summary page, as suggested by stsp
> on irc, seems a good idea to me.

ok stsp

> diff /home/op/w/got
> commit - 89f6914cfb2489a403b5b126d58861ae83956d6d
> path + /home/op/w/got
> blob - 48e5696942f0483cf0bac6ae07df6e03d218ee3e
> file + gotwebd/gotweb.c
> --- gotwebd/gotweb.c
> +++ gotwebd/gotweb.c
> @@ -352,7 +352,7 @@ gotweb_process_request(struct request *c)
>  		if (error)
>  			goto err;
>  		qs->action = TAGS;
> -		error = got_get_repo_tags(c, D_MAXSLCOMMDISP);
> +		error = got_get_repo_tags(c, D_MAXSLTAGDISP);
>  		if (error) {
>  			log_warnx("%s: got_get_repo_tags: %s", __func__,
>  			    error->msg);
> blob - 4efd134dfaaf502699cb7769db9b07549b2ee41b
> file + gotwebd/gotwebd.h
> --- gotwebd/gotwebd.h
> +++ gotwebd/gotwebd.h
> @@ -79,6 +79,7 @@
>  #define D_MAXREPODISP		 25
>  #define D_MAXSLCOMMDISP		 10
>  #define D_MAXCOMMITDISP		 25
> +#define D_MAXSLTAGDISP		 3
>  
>  #define BUF			 8192
>  
> 
>