summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-05-10 07:32:07 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-10 07:42:43 (GMT)
commit7f9778b19b07601ae8134fc4ff23b7bf7cac28bd (patch)
treefff60209e2b25e32fbb80b6803275e8874250efe /perl
parent7b6e0eb3c38696c89f7527318e010b339ba978df (diff)
downloadgit-7f9778b19b07601ae8134fc4ff23b7bf7cac28bd.zip
git-7f9778b19b07601ae8134fc4ff23b7bf7cac28bd.tar.gz
git-7f9778b19b07601ae8134fc4ff23b7bf7cac28bd.tar.bz2
gitweb: choose appropriate view for file type if a= parameter missing
gitweb URLs use the a= parameter for the view to use on the given path, such as "blob" or "tree". Currently, if a gitweb URL omits the a= parameter, gitweb just shows the top-level repository summary, regardless of the path given. gitweb could instead choose an appropriate view based on the file type: blob for blobs (files), tree for trees (directories), and summary if no path given (the URL included no f= parameter, or an empty f= parameter). Apart from making gitweb more robust and supporting URL editing more easily, this change would aid the creation of shortcuts to git repositories using simple substitution, such as: http://example.org/git/?p=path/to/repo.git;hb=HEAD;f=%s With this patch, if given the hash through the h= parameter, or the hash base (hb=) and a filename (f=), gitweb uses cat-file -t to automatically set the a= parameter. This feature was requested by Josh Triplett through http://bugs.debian.org/410465 Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'perl')
0 files changed, 0 insertions, 0 deletions