aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-13 22:02:14 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-13 22:02:14 -0700
commit4fd0f1b5b5ccf661977a95ca85cd33ba43e327fa (patch)
tree228d07c802761c60509817dd3299c7ca78b4489d
parentMerge branch 'kh/doc-continued-paragraph-fix' into next (diff)
parentbuiltin/cat-file.c: simplify calling `report_object_status()` (diff)
downloadgit-4fd0f1b5b5ccf661977a95ca85cd33ba43e327fa.tar.gz
git-4fd0f1b5b5ccf661977a95ca85cd33ba43e327fa.zip
Merge branch 'tb/cat-file-objectmode-update' into next
Code clean-up. * tb/cat-file-objectmode-update: builtin/cat-file.c: simplify calling `report_object_status()`
-rw-r--r--builtin/cat-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/cat-file.c b/builtin/cat-file.c
index ee6715fa52..5ca2ca3852 100644
--- a/builtin/cat-file.c
+++ b/builtin/cat-file.c
@@ -495,7 +495,7 @@ static void batch_object_write(const char *obj_name,
OBJECT_INFO_LOOKUP_REPLACE);
if (ret < 0) {
if (data->mode == S_IFGITLINK)
- report_object_status(opt, oid_to_hex(&data->oid), &data->oid, "submodule");
+ report_object_status(opt, NULL, &data->oid, "submodule");
else
report_object_status(opt, obj_name, &data->oid, "missing");
return;