[PATCHv2 0/6] gitweb pathinfo improvements
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Sep 21, 2008, 20:57 UTC
- Message-ID
- <1222030663-22540-1-git-send-email-giuseppe.bilotta@gmail.com>
This is a resend, with some improvements and a proper cover letter, of my patchset to extend PATH_INFO support in gitweb. Hopefully I'm doing it the right way this time :)
The basic idea is to have gitweb support paths in the form of project/action/parent:/filename..hash:/filename (modulo missing parameters) and to generate them when use_pathinfo is enabled.
For backwards compatibility, old-style urls $project/$hash are still supported (unless $hash is a named ref that happens to coincide with a gitweb action). Also, CGI parameters are still used when the path_info form would be ambiguous (e.g. filenames with two consecutive dots in their name).
Giuseppe Bilotta (6): gitweb: action in path with use_pathinfo gitweb: use_pathinfo filenames start with / gitweb: parse parent..current syntax from pathinfo gitweb: use_pathinfo creates parent..current paths gitweb: remove PATH_INFO from $my_url and $my_uri gitweb: prevent double slashes in PATH_INFO hrefs
gitweb/gitweb.perl | 161 +++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 122 insertions(+), 39 deletions(-)