From: Keshav Kini <keshav.kini@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Roberto Tyley <roberto.tyley@gmail.com>, git@vger.kernel.org
Subject: Re: [BUG?] inconsistent `git reflog show` output, possibly `git fsck` output
Date: Mon, 28 Oct 2013 12:16:06 -0500 [thread overview]
Message-ID: <8761shjoyx.fsf@gmail.com> (raw)
In-Reply-To: <xmqqtxgib1qm.fsf@gitster.dls.corp.google.com> (Junio C. Hamano's message of "Tue, 15 Oct 2013 15:36:33 -0700")
Junio C Hamano <gitster@pobox.com> writes:
> Roberto Tyley <roberto.tyley@gmail.com> writes:
>> On 21/09/2013 23:16, Keshav Kini wrote:
>>> [SNIP]
>>> This situation came about because the BFG Repo-Cleaner doesn't write new
>>> reflog entries after creating its new objects and moving refs around.
>>
>> True enough - I don't think the BFG does write new entires to the
>> reflog when it does the final ref-update, and it would be nicer if it
>> did. I'll get that fixed.
>
> (sorry for replying late)
>
> So this can be closed as "BFG not writing reflog in a consistent
> way, and 'git reflog show' is acting GIGO way"? Or was there
> something the core side needs to do?
Hi Junio,
Below I'm resending a mail that I sent to the list earlier, but not to
you or Roberto personally, as I just realized. So in case you didn't
see it before, here it is -- if you did see it before, sorry for the
noise.
Hi Junio,
Thanks for your reply. In my original mail, immediately after the
snippet Roberto quoted above, I said, "But that aside, I think how git
handles the situation might be a bug." To wit:
> It seems to me that one of two things should be the case. Either 1) it
> should be considered impossible to have a reflog for a ref X which
> doesn't contain a chain of commits leading up to the current location of
> X; or 2) if reflogs are allowed not to form an unbroken chain of commits
> leading to X, then `git reflog show` should at least make sure to
> actually display a commit ID corresponding to the second field of each
> reflog entry it reads, and not some other commit ID.
>
> In the first case, the bug is that `git fsck` doesn't catch the
> supposedly impossible situation that exists in the repository I've
> described in this email. In the second case, the bug is that `git reflog
> show` has bad output.
Before this is closed, I would appreciate it if I could get some
feedback from git developers on the above two paragraphs.
Thanks,
Keshav
prev parent reply other threads:[~2013-10-28 17:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-21 22:16 [BUG?] inconsistent `git reflog show` output, possibly `git fsck` output Keshav Kini
2013-09-22 2:38 ` Keshav Kini
2013-09-22 22:52 ` Roberto Tyley
2013-10-15 22:36 ` Junio C Hamano
2013-10-15 22:43 ` Keshav Kini
2013-10-28 17:16 ` Keshav Kini [this message]
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=8761shjoyx.fsf@gmail.com \
--to=keshav.kini@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=roberto.tyley@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).