Re: [PATCH 4/4 v4] sha1_name.c: teach get_sha1_1 "-" shorthand for "@{-1}"
- From
Siddharth Kannan <kannan.siddharth12@gmail.com>
- Date
- Feb 22, 2017, 06:27 UTC
- Message-ID
- <CAN-3QhrAYJaVNf-4LKpT2uZQr1ubyxpd1Cpo-hVhGL8dh+_SXA@mail.gmail.com>
- In-Reply-To
- <xmqqshn8ip0j.fsf@gitster.mtv.corp.google.com>
On 21 February 2017 at 02:00, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Siddharth Kannan <kannan.siddharth12@gmail.com> writes:
> > So, is it okay to stop with just supporting "-" and not support things
> > like "-@{yesterday}"?
>
> If the approach to turn "-" into "@{-1}" at that spot you did will
> cause "-@{yesterday}" to barf, then I'd say so be it for now ;-).
> We can later spread the understanding of "-" to functions deeper in
> the callchain and add support for that, no?Yes, this can be done later. I will send these patches again, with only the changes that are discussed here.
I will keep the tests for "-@{yesterday}" as failing tests, if that would help in finding this again and fixing it later.
Thanks for your review, Junio!
-- Best Regards, - Siddharth Kannan.