1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 23:07:55 +01:00

resolve textual hashes when looking up "refs"

Thanks to Jon Nelson for the patch.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
This commit is contained in:
Kay Sievers 2005-12-22 22:58:29 +01:00
parent 212848746e
commit d3a6fd9486

View file

@ -1707,8 +1707,8 @@ sub git_commit {
}
my $refs = read_info_ref();
my $ref = "";
if (defined $refs->{$hash}) {
$ref = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>";
if (defined $refs->{$co{'id'}}) {
$ref = " <span class=\"tag\">" . esc_html($refs->{$co{'id'}}) . "</span>";
}
git_header_html(undef, $expires);
print "<div class=\"page_nav\">\n" .
@ -1949,8 +1949,8 @@ sub git_commitdiff {
}
my $refs = read_info_ref();
my $ref = "";
if (defined $refs->{$hash}) {
$ref = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>";
if (defined $refs->{$co{'id'}}) {
$ref = " <span class=\"tag\">" . esc_html($refs->{$co{'id'}}) . "</span>";
}
git_header_html(undef, $expires);
print "<div class=\"page_nav\">\n" .