aboutsummaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2010-10-13 13:35:20 +0200
committerJunio C Hamano <gitster@pobox.com>2010-10-13 09:40:38 -0700
commitd0af3734f14410e9c297aa08bf46fdb153a25ccb (patch)
treec8afc96e65b82dc2a24322e16f00438fdd575e47 /fast-import.c
parent7e00dc58d14a5f8ea229e5a0acf5f019028e3a40 (diff)
downloadgit-d0af3734f14410e9c297aa08bf46fdb153a25ccb.tar.gz
git-d0af3734f14410e9c297aa08bf46fdb153a25ccb.tar.xz
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 <eli@barzilay.org> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Tested-by: Eli Barzilay <eli@barzilay.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
0 files changed, 0 insertions, 0 deletions