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

Re: CGit and repository list

From
LHLars Hjemli <hjemli@gmail.com>
Date
Sep 15, 2008, 22:04 UTC
Message-ID
<8c5c35580809151504r24e1b067ye0a085ad9e128bfb@mail.gmail.com>
In-Reply-To
<20080913194938.GI10360@machine.or.cz>
On Sat, Sep 13, 2008 at 9:49 PM, Petr Baudis <pasky@suse.cz> wrote:
Show 10 quoted lines
> On Sat, Sep 13, 2008 at 01:20:50AM +0200, Lars Hjemli wrote:
>> I guess I could add support for something like
>>
>>   scan-paths=/pub/git
>>
>> in cgitrc (and optionally store the result of the scan as another
>> cgitrc-file in the cache directory). Would that improve things for
>> you?
>
> Yes, certainly.

Ok, for now I've added a --scan-tree=<path> commandline option which will make cgit print a sorted list of the repositories found to stdout. If/when this does a reasonable job on repo.or.cz I can look into some form of automatic rescanning (enabled from cgitrc).

>> > Unfortunately, the recommended RewriteRule is not working - it does not
>> > play well together with query parameters cgit is using, so e.g. browsing
>> > past commits does not work.

I've also pushed support for PATH_INFO. This allows you to drop the rewriterules from httpd.conf and the 'virtual-url' option from cgitrc and still get the 'nice' urls.

Show 5 quoted lines
> I wonder why
>
>        http://repo.or.cz/c/libc.git/
>
> has such a funny-looking summary page.

It's due to cgits terrible functions for parsing commits and tags. I've pushed a reworked patch which should make the parsing more robust and thus also render glibc.git correctly.

Finally, and probably more interesting for freedesktop.org than repo.or.cz, is the support for repolist filtering by url prefix (compare http://hjemli.net/git and http://hjemli.net/git/xorg for a minimal example).

This is all available from the master branch in git://hjemli.net/pub/git/cgit, enjoy!

-- larsh

Previous: Lars HjemliNext: Kristian Høgsberg
Message 23 of 26 in “configuring git public repository”
  1. sagi4Sep 12, 2008
  2. Ciprian Dorin CraciunSep 12, 2008
  3. Jakub NarebskiSep 12, 2008
  4. Lars HjemliSep 12, 2008
  5. CGit and repository listPetr Baudis, Sep 12, 2008
  6. Lars HjemliSep 12, 2008
  7. Jakub NarebskiSep 12, 2008
  8. Shawn O. PearceSep 12, 2008
  9. Lars HjemliSep 12, 2008
  10. Petr BaudisSep 12, 2008
  11. Shawn O. PearceSep 12, 2008
  12. Petr BaudisSep 12, 2008
  13. Shawn O. PearceSep 12, 2008
  14. Jakub NarebskiSep 12, 2008
  15. Shawn O. PearceSep 12, 2008
  16. Petr BaudisSep 12, 2008
  17. Petr BaudisSep 12, 2008
  18. Lars HjemliSep 12, 2008
  19. Petr BaudisSep 13, 2008
  20. Lars HjemliSep 13, 2008
  21. parsing.c: handle unexpected commit/tag contentLars Hjemli, Sep 14, 2008
  22. Lars HjemliSep 14, 2008
  23. Lars HjemliSep 15, 2008
  24. Kristian HøgsbergSep 14, 2008
  25. Kristian HøgsbergSep 14, 2008
  26. Lars HjemliSep 14, 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.