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

Re: [PATCH] gitweb: Use config file or file for repository owner's name.

From
BRBruno Cesar Ribas <ribas@c3sl.ufpr.br>
Date
Jan 31, 2008, 02:36 UTC
Message-ID
<20080131023629.GB7778@c3sl.ufpr.br>
In-Reply-To
<7vwsprj0sv.fsf@gitster.siamese.dyndns.org>
On Tue, Jan 29, 2008 at 10:16:16PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> Bruno Ribas <ribas@c3sl.ufpr.br> writes:
> 
> <snip> 
> I am not sure about the effect of this change on a large scale
> site.  If you do not have the project list file, originally we
> just needed a stat per project, but now you open an extra file
> (either "owner" or "config") and read it, once per every
> project.

Opening the extra file has same problem as the description file. And, as gitweb allow us to create "description" and "cloneurl" file there is no problem having another file to open instead finding out who is the owner of the directory asking to the filesystem.

Show 9 quoted lines
> 
> The project list page does that for every project, and it
> actually is worse because it also needs to open yet another file
> "description" from the directory.  It almost makes me wonder if
> are much better of to have a single file per project to read all
> the necessary information off of, instead of having to open many
> little files (currently it is only two---owner and description.
> But who knows what other little pieces of information you would
> want to add next week).

wow, just me adds more little information?! 8-P (I have my own git.acl which is the "simple" way to my SSH scripts control acl via public_key, but that's another story).

Having a single file is already done, having the config file but parser may be bad too (or not for common case), we can have a "gitweb.config" which contains all those necessary information like owner, description, cloneurl ...

Another "option" is to make cache of then project list page =) From time to time (each push ?!) gitweb creates project list page again and generates a new project_list file to have easy access when entering summary page, or make summary page cached too

-- 
Bruno Ribas - ribas@c3sl.ufpr.br
http://web.inf.ufpr.br/ribas
C3SL: http://www.c3sl.ufpr.br 
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 16 in “gitweb: Use config file or file for repository owner's name.”
  1. gitweb: Use config file or file for repository owner's name.Bruno Ribas, Jan 30, 2008
  2. gitweb: Update gitweb/README to include the new per-repository configurationBruno Ribas, Jan 30, 2008
  3. Junio C HamanoJan 30, 2008
  4. Bruno Cesar RibasJan 31, 2008
  5. Junio C HamanoJan 31, 2008
  6. Bruno Cesar RibasJan 31, 2008
  7. Junio C HamanoJan 31, 2008
  8. Jakub NarebskiJan 31, 2008
  9. Johannes SchindelinJan 31, 2008
  10. Jakub NarebskiFeb 1, 2008
  11. Bruno Cesar RibasFeb 4, 2008
  12. Jakub NarebskiFeb 4, 2008
  13. Bruno Cesar RibasFeb 5, 2008
  14. Jakub NarebskiFeb 5, 2008
  15. Bruno Cesar RibasFeb 5, 2008
  16. Bruno Cesar RibasFeb 7, 2008

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.