From: Jakub Narebski Date: Wed, 13 Oct 2010 11:35:20 +0000 (+0200) Subject: gitweb: Improve behavior for actionless path_info gitweb URLs X-Git-Tag: v1.7.4-rc0~178 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/d0af3734f14410e9c297aa08bf46fdb153a25ccb?hp=d0af3734f14410e9c297aa08bf46fdb153a25ccb gitweb: Improve behavior for actionless path_info gitweb URLs Eli Barzilay noticed that http://server/gitweb/project/ link goes to 'shortlog' view, while 'commit' view would be more useful, but that 'shortlog' action is more apropriate for http://server/gitweb/project/.. 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/ 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 Signed-off-by: Jakub Narebski Tested-by: Eli Barzilay Signed-off-by: Junio C Hamano ---