]> Lady’s Gitweb - Gitweb/commit
gitweb: add project_filter to limit project list to a subdirectory
authorBernhard R. Link <redacted>
Mon, 30 Jan 2012 20:07:37 +0000 (21:07 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:31 +0000 (00:51 -0400)
commit9b98a97e7e97f86ca0d373a41a738b8a1608f2d7c59ee31835e982881aad242a
treecdfc073a9ca9856fb1c568d28942ecfc2937c9a29eb206d0ef1bf37c4d54a995
parent3bb60c6d977266913201a89354ff788db7c5039dc0a6226899aeab874796cf3a
gitweb: add project_filter to limit project list to a subdirectory

This commit changes the project listing views (project_list,
project_index and opml) to limit the output to only projects in a
subdirectory if the new optional parameter ?pf=directory name is
used.

The implementation of the filter reuses the implementation used for
the 'forks' action (i.e. listing all projects within that directory
from the projects list file (GITWEB_LIST) or only projects in the
given subdirectory of the project root directory without a projects
list file).

Reusing $project instead of adding a new parameter would have been
nicer from a UI point-of-view (including PATH_INFO support) but
would complicate the $project validating code that is currently
being used to ensure nothing is exported that should not be viewable.

Signed-off-by: Bernhard R. Link <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.057697 seconds and 4 git commands to generate.