gitweb: Optional grouping of projects by categorygitweb/category
commit2a0fcfa63f7b09eceda037c0d9123c54dd2a157a
authorSebastien Cevey <seb@cine7.net>
Sun, 15 May 2011 11:02:49 +0000 (15 13:02 +0200)
committerJakub Narebski <jnareb@gmail.com>
Sun, 15 May 2011 11:02:49 +0000 (15 13:02 +0200)
tree25d7059c82198d9a684a35eb86c99a3f78ecb571
parent177f5f056e7da3ebf7fd612f3bb548f3bc8eab5e
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 <seb@cine7.net>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
gitweb/README
gitweb/gitweb.perl
gitweb/static/gitweb.css
t/t9500-gitweb-standalone-no-errors.sh