]> git.ipfire.org Git - thirdparty/git.git/commit - commit.h
rebase: be stricter when reading state files containing oids
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Oct 2022 13:17:40 +0000 (13:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2022 18:53:00 +0000 (11:53 -0700)
commitb8dbfd030ccc8e5be6b22bc28a342119504e0c2b
treea7caa68dcf31b2bdef967c896fdfa10eebdb6334
parent05ec41855da2ba813e6cfb5fb1fb86aea623addc
rebase: be stricter when reading state files containing oids

The state files for 'onto' and 'orig_head' should contain a full hex
oid, change the reading functions from get_oid() to get_oid_hex() to
reflect this. They should also name commits and not tags so add and use
a function that looks up a commit from an oid like
lookup_commit_reference() but without dereferencing tags.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
commit.c
commit.h