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

Re: cat-file: dies with --batch if reflog entry is out of bounds

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2026, 23:40 UTC
Message-ID
<xmqqcy2argqh.fsf@gitster.g>
In-Reply-To
<2b07489b-1689-4ecd-9cda-012540fe56e2@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 8 quoted lines
>     $ git cat-file --batch
>     HEAD@{7}
>     <commit>
>     branch@{20}
>     fatal: log for 'branch' only has 5 entries
>     [died]
>
> This is a known limitation.

It is pretty safe to call this a BUG, given that everywhere we seem to try very hard to diagnose "you asked me about X, but that does not name anything I know about", as you found out..

Previous: Kristoffer HaugsbakkNext: Jeff King
Message 2 of 3 in “cat-file: dies with --batch if reflog entry is out of bounds”
  1. Kristoffer HaugsbakkFeb 11, 2026
  2. Junio C HamanoFeb 11, 2026
  3. Jeff KingFeb 12, 2026

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.