From: Junio C Hamano <gitster@pobox•com>
To: Christian Halstrick <christian.halstrick@gmail•com>
Cc: Git <git@vger•kernel.org>
Subject: Re: is ORIG_HEAD allowed to point to a non-existing object?
Date: Tue, 10 May 2016 11:14:06 -0700 [thread overview]
Message-ID: <xmqqinylpyq9.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <CAENte7jNxM7J9bWUnrOkLQJZ=8JEtYzw9-uxVkq-CpvGyk9UUw@mail.gmail.com> (Christian Halstrick's message of "Tue, 10 May 2016 14:15:31 +0200")
Christian Halstrick <christian.halstrick@gmail•com> writes:
> If I do a "git-rebase -i ..." followed by "git reflog expire ..." and
> "git gc ..." then I can end up with a repo which has a ref ORIG_HEAD
> which points to a non-existing object.
>
> - Is this intended?
Yes.
HEAD is a ref, but other things like MERGE_HEAD, ORIG_HEAD,
FETCH_HEAD are not considered as refs and they are intended to be
temporary. This does mean that they will become invalid if you
prune objects that are only reachable from them, but your "reflog
expire && gc" falls into "if it hurts, don't do it".
prev parent reply other threads:[~2016-05-10 18:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 12:15 is ORIG_HEAD allowed to point to a non-existing object? Christian Halstrick
2016-05-10 18:14 ` Junio C Hamano [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=xmqqinylpyq9.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=christian.halstrick@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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