Ævar Arnfjörð Bjarmason
c80d226a04
object-file API: have write_object_file() take "enum object_type"
...
Change the write_object_file() function to take an "enum object_type"
instead of a "const char *type". Its callers either passed
{commit,tree,blob,tag}_type and can pass the corresponding OBJ_* type
instead, or were hardcoding strings like "blob".
This avoids the back & forth fragility where the callers of
write_object_file() would have the enum type, and convert it
themselves via type_name(). We do have to now do that conversion
ourselves before calling write_object_file_prepare(), but those
codepaths will be similarly adjusted in subsequent commits.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2022-02-25 17:16:31 -08:00
..
2022-01-05 13:31:00 -08:00
2022-01-10 11:52:56 -08:00
2021-08-25 14:39:08 -07:00
2021-10-01 15:47:53 -07:00
2021-12-21 15:03:17 -08:00
2022-01-20 15:25:38 -08:00
2021-09-27 09:44:54 -07:00
2021-10-03 21:49:20 -07:00
2022-01-05 13:31:00 -08:00
2021-10-15 13:09:40 -07:00
2022-02-25 17:16:31 -08:00
2021-12-09 13:33:13 -08:00
2022-01-12 15:11:43 -08:00
2021-08-26 14:36:27 -07:00
2021-11-01 13:48:08 -07:00
2021-08-25 14:39:08 -07:00
2022-01-05 13:31:00 -08:00
2021-10-01 14:22:51 -07:00
2021-09-14 09:30:54 -07:00
2021-07-26 12:17:16 -07:00
2021-10-28 09:57:09 -07:00
2022-01-05 13:31:00 -08:00
2021-09-07 11:11:35 -07:00
2022-01-05 13:29:23 -08:00
2021-12-06 09:55:06 -08:00
2022-01-05 13:29:23 -08:00
2022-01-10 11:52:56 -08:00
2022-02-25 17:16:31 -08:00
2022-01-12 15:11:43 -08:00
2021-12-20 14:55:02 -08:00
2021-10-20 14:33:07 -07:00
2021-07-26 12:19:20 -07:00
2021-11-25 22:15:07 -08:00
2021-12-07 13:25:16 -08:00
2021-10-23 10:45:25 -07:00
2021-10-12 13:51:32 -07:00
2021-11-25 22:15:07 -08:00
2022-02-25 17:16:31 -08:00
2022-01-05 13:29:23 -08:00
2022-01-10 11:52:56 -08:00
2022-01-10 11:52:56 -08:00
2021-10-20 14:33:07 -07:00
2021-08-25 14:39:08 -07:00
2021-12-01 14:45:58 -08:00
2022-01-10 11:52:56 -08:00
2022-02-25 17:16:31 -08:00
2022-02-25 17:16:31 -08:00
2021-10-28 15:32:14 -07:00
2021-09-28 10:31:02 -07:00
2021-12-04 23:39:34 -08:00
2022-02-25 17:16:31 -08:00
2022-01-05 13:29:23 -08:00
2022-01-03 16:24:15 -08:00
2021-12-22 11:42:39 -08:00
2022-01-05 13:29:23 -08:00
2021-09-27 13:38:37 -07:00
2022-01-05 13:31:00 -08:00
2022-02-25 17:16:31 -08:00
2021-12-22 16:24:14 -08:00
2021-10-18 15:47:57 -07:00
2022-01-10 11:52:56 -08:00
2022-02-25 17:16:31 -08:00
2022-01-05 13:31:00 -08:00
2022-01-05 13:31:00 -08:00
2021-09-27 12:36:45 -07:00
2021-09-20 15:20:45 -07:00
2022-01-10 11:52:56 -08:00
2021-10-29 15:43:12 -07:00
2021-10-08 14:13:11 -07:00
2022-01-05 13:29:23 -08:00
2022-01-10 11:52:49 -08:00
2022-01-26 22:22:24 -08:00
2022-01-05 13:29:23 -08:00
2022-02-25 17:16:31 -08:00
2022-02-25 17:16:31 -08:00
2021-08-25 14:39:08 -07:00
2021-09-03 11:35:15 -07:00
2021-11-25 22:15:07 -08:00
2021-08-05 08:59:37 -07:00
2021-11-03 13:25:36 -07:00
2022-01-05 13:31:00 -08:00