git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb: The "Owner" column can be hidden

From
Jan Stępień <jan@stepien.cc>
Date
Mar 31, 2010, 13:32 UTC
Message-ID
<20100331153218.6b13853b.jan@stepien.cc>
In-Reply-To
<7vy6h8om7q.fsf@alter.siamese.dyndns.org>

On Wed, 31 Mar 2010 02:48:57 -0700 Junio C Hamano <gitster@pobox.com> wrote:

Show 29 quoted lines
> Jan Stępień  <jstepien@users.sourceforge.net> writes:
> 
> > This commit adds $show_owner_column configuration variable which allows
> > to hide the project list "Owner" column if desired.
> > 
> > @@ -4430,7 +4433,7 @@ sub git_project_list_body {
> >  		}
> >  		print_sort_th('project', $order, 'Project');
> >  		print_sort_th('descr', $order, 'Description');
> > -		print_sort_th('owner', $order, 'Owner');
> > +		print_sort_th('owner', $order, 'Owner') if $show_owner_column;
> >  		print_sort_th('age', $order, 'Last Change');
> 
> Ugly.  Think what you would do if somebody else asks you to allow him to
> omit 'Description', or perhaps 'Last Change'.
> 
> I would understand if the change was to introduce a configuration variable
> of the array type @project_column whose default value is qw(project descr
> owner age) that is used to control which columns are shown in what order.
> 
> If it is undesirable to allow reordering the columns, the configuration
> should at least be %omit_project_column used like this, no?
> 
> 	print_sort_th('project', $order, 'Project')
>         	unless $omit_project_column{'project'};
> 	print_sort_th('descr', $order, 'Description')
>         	unless $omit_project_column{'descr'};
> 	...
> 

As I wrote in my e-mail to Jakub Narebski, the reason for hiding only the "Owner" column is a single-user situation. There's only one owner and repeating his name in each column isn't necessary.

I agree that your solution is cleaner and allows further customization, but it covers a slightly different issue comparing to the one I'm addressing.

I like the idea suggested by Jakub to make this config variable cover other pages. It could remove the owner information from both the project list and project summaries.

Cheers,
-- 
Jan Stępień <jan@stepien.cc>
Previous: Junio C HamanoNext: Jakub Narebski
Message 3 of 6 in “gitweb: The "Owner" column can be hidden”
  1. gitweb: The "Owner" column can be hiddenJan Stępień, Mar 31, 2010
  2. Junio C HamanoMar 31, 2010
  3. Jan StępieńMar 31, 2010
  4. Jakub NarebskiMar 31, 2010
  5. Jan StępieńMar 31, 2010
  6. Jakub NarebskiMar 31, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.