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

Re: [RFC/PATCH 2/2] gitweb: Add an option to show size of blobs in the tree view

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 2, 2007, 00:47 UTC
Message-ID
<7vps263gq2.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200708020158.50343.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 5 quoted lines
> So you think that ";opt=-l" would be required to have 'tree' view with 
> blob (file) sizes, and it would be allowed only if 
> gitweb_check_feature('ls-tree-size') is true (or something like that).
> Should we return "Permission denied" or simply ignore "-l" extra option 
> if it is prohivited by the config?

I would say we should make config show-tree-entry-size (or whatever name) unconditionally give the object size of the tree entry, and drop ";opt=-l in URL" support from the code. In other words, if the site/repo owner wants to show it, it is shown to everybody, otherwise nothing is shown.

Keeping the URL clean and without needless variations would help caching; I do not see major advantage of this feature one way or the other, so if we can keep a tree view of the same object from the same repository the same by removing one user preference, that would be better.

Previous: Jakub NarebskiNext: Junio C Hamano
Message 7 of 11 in “gitweb: Allow for multivalued parameters passed to href subroutine”
  1. 1/2 gitweb: Allow for multivalued parameters passed to href subroutineJakub Narebski, Jul 31, 2007
  2. 2/2 gitweb: Add an option to show size of blobs in the tree viewJakub Narebski, Jul 31, 2007
  3. Junio C HamanoJul 31, 2007
  4. Jakub NarebskiAug 1, 2007
  5. Junio C HamanoAug 1, 2007
  6. Jakub NarebskiAug 1, 2007
  7. Junio C HamanoAug 2, 2007
  8. Junio C HamanoAug 2, 2007
  9. Jakub NarebskiAug 2, 2007
  10. Junio C HamanoAug 2, 2007
  11. Jakub NarebskiJul 31, 2007

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.