bisect: debug: convert struct object to object_id

The commit f2fd0760 ("Convert struct object to object_id", 2015-11-10) converted struct object to object_id but forgot to adjust a few callers in a debug function show_list(), which is ifdef'ed to noop, in bisect.c. Signed-off-by: Yasushi SHOJI <Yasushi.SHOJI@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Yasushi SHOJI committed Jan 9, 2018 at 20:03 UTC f0a6068a9f3377a209c43282831e338d10aaf152
1 file changed +3 -3
bisect.c
+3 -3
@@ -131,7 +131,7 @@ static void show_list(const char *debug, int counted, int nr,
131 unsigned flags = commit->object.flags;
132 enum object_type type;
133 unsigned long size;
134 - char *buf = read_sha1_file(commit->object.sha1, &type, &size);
134 + char *buf = read_sha1_file(commit->object.oid.hash, &type, &size);
135 const char *subject_start;
136 int subject_len;
137
@@ -143,10 +143,10 @@ static void show_list(const char *debug, int counted, int nr,
143 fprintf(stderr, "%3d", weight(p));
144 else
145 fprintf(stderr, "---");
146 - fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.sha1));
146 + fprintf(stderr, " %.*s", 8, sha1_to_hex(commit->object.oid.hash));
147 for (pp = commit->parents; pp; pp = pp->next)
148 fprintf(stderr, " %.*s", 8,
149 - sha1_to_hex(pp->item->object.sha1));
149 + sha1_to_hex(pp->item->object.oid.hash));
150
151 subject_len = find_commit_subject(buf, &subject_start);
152 if (subject_len)