gitweb: Change appereance of marker of refs pointing to given object
commitd294e1cad4eef263c7f4912332fd0094e37e95a7
authorJakub Narebski <jnareb@gmail.com>
Mon, 14 Aug 2006 00:14:20 +0000 (14 02:14 +0200)
committerJunio C Hamano <junkio@cox.net>
Tue, 15 Aug 2006 00:28:01 +0000 (14 17:28 -0700)
tree59719c7504b873573930a5434d5db91f04703bfa
parent1e0cf030c047741cab9ef36b91bc2ae57b83e405
gitweb: Change appereance of marker of refs pointing to given object

Change git_get_references to include type of ref in the %refs value, which
means putting everything after 'refs/' as a ref name, not only last
part of the name.  Instead of separating refs pointing to the same
object by " / " separator, use anonymous array reference to store all
refs pointing to given object.

Use 'git-ls-remote .' if $projectroot/$project/info/refs does not
exist.  (Perhaps it should be used always.)

Refs are now in separate span elements.  Class is dependent on the ref
type: currently known classes are 'tag', 'head', 'remote', and 'ref'
(last one for HEAD and other refs in the main directory).  There is
encompassing span element of class refs, just in case of unknown ref
type.

This might be considered cleaner separating of git_get_references into
filling %refs hash only, and not taking part in formatting ref marker.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.css
gitweb/gitweb.perl