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