git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `git-rev-parse master` not referred to by any ref?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 26, 2007, 22:28 UTC
Message-ID
<20070826222852.GC18160@spearce.org>
In-Reply-To
<7vir72ng1n.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
> Also, I *think* objects that are only reachable via ORIG_HEAD
> are not considered as reachable by fsck/prune --- we probably
> would want to fix this.

Probably. But most users also have reflog enabled on HEAD in the repository if they were to also have ORIG_HEAD there. In such a case ORIG_HEAD is usually HEAD@{1}, which is considered reachable by fsck/prune/repack.

-- 
Shawn.
Previous: Junio C HamanoNext: J. Bruce Fields
Message 5 of 6 in “`git-rev-parse master` not referred to by any ref?”
  1. J. Bruce FieldsAug 26, 2007
  2. J. Bruce FieldsAug 26, 2007
  3. J. Bruce FieldsAug 26, 2007
  4. Junio C HamanoAug 26, 2007
  5. Shawn O. PearceAug 26, 2007
  6. J. Bruce FieldsAug 26, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.