git/builtin
Ævar Arnfjörð Bjarmason 6aea6baeb3 object-file API: pass an enum to read_object_with_reference()
Change the read_object_with_reference() function to take an "enum
object_type". It was not prepared to handle an arbitrary "const
char *type", as it was itself calling type_from_string().

Let's change the only caller that passes in user data to use
type_from_string(), and convert the rest to use e.g. "OBJ_TREE"
instead of "tree_type".

The "cat-file" caller is not on the codepath that
handles"--allow-unknown", so the type_from_string() there is safe. Its
use of type_from_string() doesn't functionally differ from that of the
pre-image.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-02-25 17:16:32 -08:00
..
2022-01-10 11:52:56 -08:00
2020-07-30 19:18:06 -07:00
2021-12-21 15:03:17 -08:00
2022-01-12 15:11:43 -08:00
2021-10-28 09:57:09 -07:00
2021-02-25 16:43:30 -08:00
2021-12-06 09:55:06 -08:00
2022-01-12 15:11:43 -08:00
2022-01-10 11:52:56 -08:00
2021-04-14 13:47:21 -07:00
2021-09-28 10:31:02 -07:00
2020-03-24 15:04:44 -07:00
2022-01-03 16:24:15 -08:00
2021-12-22 11:42:39 -08:00
2022-01-10 11:52:56 -08:00
2022-01-26 22:22:24 -08:00
2021-11-03 13:25:36 -07:00
2020-08-11 18:04:11 -07:00
2019-06-19 08:19:21 -07:00