Re: [PATCH v4] gitweb: ref markers link to named shortlogs
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Aug 22, 2008, 13:42 UTC
- Message-ID
- <200808221542.13227.jnareb@gmail.com>
- In-Reply-To
- <cb7bb73a0808220620m10245693pabe49993e91cff3d@mail.gmail.com>
Giuseppe Bilotta wrote:
Show 12 quoted lines
> On Fri, Aug 22, 2008 at 3:01 PM, Jakub Narebski <jnareb@gmail.com> wrote:
> >
> > Seems overly complicated. How about something like this, instead?
> > It simply moves stripping ^{} from refs to format_ref_marker(),
> > and uses "tags/v1.5.0^{}" instead of [ "tags/v1.5.0", 1 ].
>
> My thought was that if the refs stuff was being used for something
> else than format_ref_marker, it would fail more spectacularly due to
> the different kind of values, rather than introducing potentially
> subtle bugs due to the additiona ^{} popping in unexpectedly, but it
> wouldn't be a problem to do it the simple way. Let me clean the patch
> up and resubmit it.This might be good idea, but for the two following reasons: a) it makes code more complicated, b) it is inconsistent, because ref type would be saved in refname then stripped in format_ref_marker, while indirection would be saved in git_get_references; consistent would be ["tags", "v1.5.0", 1].
Thanks for your work on improving gitweb.
-- Jakub Narebski Poland