]> Lady’s Gitweb - Gitweb/commit
gitweb: Improve behavior for actionless path_info gitweb URLs
authorJakub Narebski <redacted>
Wed, 13 Oct 2010 11:35:20 +0000 (13:35 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commitddba7c920872eeadc78611c072322749fcedeca11dfcc5e06f2e6a37c60341b1
treeb29e7e0c1fe3b3fdaed8d2b124dda7f64de0d36bf02f4cbc5682fdd6627f5d7c
parent186b594eac227d7c104bf0e0c84819ee4e69774cd0c9df2050ede3aecfa1a909
gitweb: Improve behavior for actionless path_info gitweb URLs

Eli Barzilay noticed that

  http://server/gitweb/project/<commit-sha1>

link goes to 'shortlog' view, while 'commit' view would be more
useful, but that 'shortlog' action is more apropriate for

  http://server/gitweb/project/<commit-sha1>..<other-commit-sha1>

links.

Therefore for the case when we don't have either action, or filename,
or parent hash [base] in path_info-based URL, i.e. for

  http://server/gitweb/project/<object-id>

link, instead of using 'shortlog' view we allow dispatch() subroutine
to detect type of object and use appropriate action (in most case it
would be either 'commit' action, or 'tag', or 'tree' for top
directory).

Requested-by: Eli Barzilay <redacted>
Signed-off-by: Jakub Narebski <redacted>
Tested-by: Eli Barzilay <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.020677 seconds and 4 git commands to generate.