]> Lady’s Gitweb - Gitweb/commit
gitweb: Ref refactoring - use git_get_referencing for marking tagged/head commits
authorJakub Narebski <redacted>
Mon, 31 Jul 2006 00:21:52 +0000 (02:21 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
commitee4614f7dd8c1069e5ff52185b92dc7186ef7b8e189fca6a7227a894b2c68d80
tree2612c4ff0d34064ec5d920bfa4962b85fadabe8cb4868b0629a860cb207bbe54
parent0e80f7b0c8f1245ded3898f0a6884f11b1a85ea9bd43e694f28481eafc8713ac
gitweb: Ref refactoring - use git_get_referencing for marking tagged/head commits

Use git_get_referencing to get HTML code for markers showing which
refs (tags and heads) point to current commit.  It would be much
easier to change format of markers in one or two places than thorough
the gitweb.cgi file.

Added comment about read_info_ref subroutine: for $type == "" (empty
argument) it saves only last path part of ref name e.g. from
'refs/heads/jn/gitweb' it would leave only 'gitweb'.

Some reordering.  Added $ref in one place.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi
This page took 0.21865 seconds and 4 git commands to generate.