On Fri, Aug 22, 2008 at 12:56 PM, Jakub Narebski <jnareb@xxxxxxxxx> wrote: > This "couple of extra info" could be just '^{}' suffix. So I don't > think it would be very complicated. > > You could simply do not strip '^{}' suffix in git_get_references() > subroutine (so for example $refs->{$id} could be "tags/v1.6.0^{}", > and not simply "tags/v1.6.0" when $id is sha-1 of a _commit_ indirectly > referenced by v1.6.0, i.e. referenced by v1.6.0 _tag_), and strip > it and make use of it in format_ref_marker(): > > if ($ref =~ s/\^\{\}$//) { > # $ref is a tag > } else { > # $ref points directly to object > } I've actually changed the format of $refs, making the values into arrays whose first value is the name and the other is the ^{} marker, if present. Patch incoming. > P.S. I have re-added git mailing list to Cc:. Oops, didn't realized I had forgotten it. -- Giuseppe "Oblomov" Bilotta -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html