]> git.ipfire.org Git - thirdparty/git.git/commit
replay: die if we cannot parse object
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Mon, 5 Jan 2026 19:53:21 +0000 (20:53 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Jan 2026 22:30:16 +0000 (07:30 +0900)
commit6f693364cc183ea5a8296c9ce2ff515f47206f92
tree4bf41753d30cd092b9fb196010de60779dc40c3b
parentf67f7ddbbd03634318d54b1d1ad7ed8df4a2b292
replay: die if we cannot parse object

`parse_object` can return `NULL`. That will in turn make
`repo_peel_to_type` return the same.

Let’s die fast and descriptively with the `*_or_die` variant.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replay.c