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

From: Junio C Hamano <[email-masked]>
Date: Wed, 11 Feb 2026 15:40:54 -0800

"Kristoffer Haugsbakk" <[email-masked]> writes:

>     $ 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..