From: Junio C Hamano <gitster@pobox.com>
To: Mike Hommey <mh@glandium.org>
Cc: Sergey Organov <sorganov@gmail.com>, git@vger.kernel.org
Subject: Re: Annoyance wrt ref@{1} and reflog expiry
Date: Fri, 19 Jun 2020 14:49:48 -0700 [thread overview]
Message-ID: <xmqqblleg1z7.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20200619203639.i5jto4i52ptsihrs@glandium.org> (Mike Hommey's message of "Sat, 20 Jun 2020 05:36:39 +0900")
Mike Hommey <mh@glandium.org> writes:
>> Or we could change the lookup side to use the value of the ref
>> itself when asked for @{0}, and use the "old" side of the only entry
>> when asked for @{1}. That way, we do not need to play games with an
>> artificial entry at all, which may be a better solution.
>
> Or more generally, use the old side from @{n} when asked for @{n+1} when
> there are only n entries in the reflog.
Yup, I agree that it is the natural consequence.
next prev parent reply other threads:[~2020-06-19 21:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-19 18:03 Annoyance wrt ref@{1} and reflog expiry Junio C Hamano
2020-06-19 18:14 ` Sergey Organov
2020-06-19 20:31 ` Junio C Hamano
2020-06-19 20:36 ` Mike Hommey
2020-06-19 21:49 ` Junio C Hamano [this message]
2020-06-19 20:44 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqblleg1z7.fsf@gitster.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=mh@glandium.org \
--cc=sorganov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).