Skip to content

gitweb: Improved treatment of links with unknown object type

Jakub Narebski git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gitweb: Redirect to appropriate view if 'a=' parameter is missinggitweb/gitweb.perl+3 -40 replies
2/3gitweb: Simplify object type detection in git_object()gitweb/gitweb.perl+2 -180 replies
3/3gitweb: Make 'object' action implicit by using no action URLgitweb/gitweb.perl+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] gitweb: Improved treatment of links with unknown object type

This series of patches make gitweb URLs without a= parameter to use 'object' view, which finds type of requested onject and redirects (HTTP redirect) to proper view, instead of just displaying this view. git_object() in turn is simplified to use git_get_type() subroutine, as was used for URLs without a=. As 'object' view is just internal implementation use no a= parameter instead of a=object for gitweb URLs for which type of object (and therefore view to be used) is not known.

I guess that this series of patches can be squashed into single commit, but I think that having them split into parts makes reviewing them easier; it also makes possible to drop indivisual commits, for example dropping second commit would leave gitweb with modified finding type of an object.

Shortlog:
=========
Jakub Narebski (3):
gitweb: Redirect to appropriate view if 'a=' parameter is missing
gitweb: Simplify object type detection in git_object()
gitweb: Make 'object' action implicit by using no action URL

Diffstat:
=========

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

This series removes more than adds mainly thanks to second patch in the series which simplifies git_object() type detection code.

Signature · 3 lines
Jakub Narebski
ShadeHawk on #git
Poland