]> Lady’s Gitweb - Gitweb/commit
gitweb: Optional grouping of projects by category
authorSebastien Cevey <redacted>
Fri, 29 Apr 2011 17:52:01 +0000 (19:52 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commit95ffa50f893aed551b698a71db6cd403019dba0f1c49d2e9699d98e2995a0fea
treeb8ac345d474d5979b946a4aae4b1cf9900aa35d137959ec0bdee5060d7782885
parent635503ec11fb1e92144d9a18670414450769d394454c0d4b56a4b15a6893769b
gitweb: Optional grouping of projects by category

This adds the $projects_list_group_categories option which, if enabled,
will result in grouping projects by category on the project list page.
The category is specified for each project by the $GIT_DIR/category file
or the 'gitweb.category' variable in its configuration file. By default,
projects are put in the $project_list_default_category category.

Note:
- Categories are always sorted alphabetically, with projects in
  each category sorted according to the globally selected $order.
- When displaying a subset of all the projects (page limiting), the
  category headers are only displayed for projects present on the page.

The feature is inspired from Sham Chukoury's patch for the XMMS2
gitweb, but has been rewritten for the current gitweb code. The CSS
for categories is inspired from Gustavo Sverzut Barbieri's patch to
group projects by path.

Thanks to Florian Ragwitz for Perl tips.

[jn: Updated to post restructuring projects list generation, fixed bugs,
 added very basic test in t9500 that there are no warnings from Perl.]

Signed-off-by: Sebastien Cevey <redacted>
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
README
gitweb.perl
static/gitweb.css
This page took 0.249978 seconds and 4 git commands to generate.