gitweb: Improved treatment of links with unknown object type
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | gitweb: Redirect to appropriate view if 'a=' parameter is missinggitweb/ | +3 | 0 replies | |
| 2/3 | gitweb: Simplify object type detection in git_object()gitweb/ | +2 | 0 replies | |
| 3/3 | gitweb: Make 'object' action implicit by using no action URLgitweb/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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