diff options
author | Bernhard R. Link <brl+git@mail.brlink.eu> | 2012-01-30 21:07:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-01 12:52:49 -0800 |
commit | 19d2d23998bba7c7f0ee87451ddbbf8906381939 (patch) | |
tree | d99a06fa9cb96c4cdb76076be523acf0263f8ff9 /t/t3405-rebase-malformed.sh | |
parent | 348a6589e016669a3cf2d71c612e32dde9ef6f27 (diff) | |
download | git-19d2d23998bba7c7f0ee87451ddbbf8906381939.tar.gz |
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 <brlink@debian.org>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3405-rebase-malformed.sh')
0 files changed, 0 insertions, 0 deletions