Commit 19d2d23
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 <[email protected]>
Acked-by: Jakub Narebski <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 348a658 commit 19d2d23
1 file changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
| 763 | + | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
| |||
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
979 | | - | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
| |||
994 | 995 | | |
995 | 996 | | |
996 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
| |||
3732 | 3740 | | |
3733 | 3741 | | |
3734 | 3742 | | |
3735 | | - | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
3736 | 3749 | | |
3737 | 3750 | | |
3738 | 3751 | | |
| |||
5982 | 5995 | | |
5983 | 5996 | | |
5984 | 5997 | | |
5985 | | - | |
| 5998 | + | |
5986 | 5999 | | |
5987 | 6000 | | |
5988 | 6001 | | |
| |||
6023 | 6036 | | |
6024 | 6037 | | |
6025 | 6038 | | |
6026 | | - | |
| 6039 | + | |
6027 | 6040 | | |
6028 | 6041 | | |
6029 | 6042 | | |
| |||
7862 | 7875 | | |
7863 | 7876 | | |
7864 | 7877 | | |
7865 | | - | |
| 7878 | + | |
7866 | 7879 | | |
7867 | 7880 | | |
7868 | 7881 | | |
| |||
7873 | 7886 | | |
7874 | 7887 | | |
7875 | 7888 | | |
| 7889 | + | |
| 7890 | + | |
| 7891 | + | |
| 7892 | + | |
| 7893 | + | |
| 7894 | + | |
7876 | 7895 | | |
7877 | 7896 | | |
7878 | 7897 | | |
7879 | 7898 | | |
7880 | | - | |
| 7899 | + | |
7881 | 7900 | | |
7882 | 7901 | | |
7883 | 7902 | | |
| |||
0 commit comments