Skip to content

gitweb: PATH_INFO enhancement

Giuseppe Bilotta git 5 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest5 patches 0 repliesNew
  2. v65 patches 9 repliesSuperseded
  3. v55 patches 3 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v41 patch12 repliesSuperseded
v31 patch0 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gitweb: parse project/action/hash_base:filename PATH_INFOgitweb/gitweb.perl+39 -70 replies
2/5gitweb: generate project/action/hash URLsgitweb/gitweb.perl+30 -30 replies
3/5gitweb: use_pathinfo filenames start with /gitweb/gitweb.perl+3 -30 replies
4/5gitweb: parse parent..current syntax from PATH_INFOgitweb/gitweb.perl+34 -20 replies
5/5gitweb: generate parent..current URLsgitweb/gitweb.perl+24 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCHv7 0/5] gitweb: PATH_INFO enhancement

Sevent attempt for my gitweb PATH_INFO patchset, whose purpose is to reduce the use of CGI parameters by embedding as many parameters as possible in the URL path itself, provided the pathinfo feature is enabled.

The new typical gitweb URL is therefore in the form

$project/$action/$parent:$file..$hash:$file

(with useless parts stripped). Backwards compatibility for old-style $project/$hash[:$file] URLs is kept, as long as $hash is not a refname whose name happens to match a git action.

The main implementation is provided by paired patches (#1#2, #4#5) that implement parsing and generation of the new style URLs.

Patch #3 is a minor improvement to the URL syntax that allows web sites to be properly browsable in raw mode.

The patchset depends on my previous input parameter handling patch currently waiting in 'next'. This resend fixes some mainly aesthetical issues spotted by Jakub

Giuseppe Bilotta (5):
gitweb: parse project/action/hash_base:filename PATH_INFO
gitweb: generate project/action/hash URLs
gitweb: use_pathinfo filenames start with /
gitweb: parse parent..current syntax from PATH_INFO
gitweb: generate parent..current URLs

 gitweb/gitweb.perl |  133 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 122 insertions(+), 11 deletions(-)