136
{
137
struct strbuf sb = STRBUF_INIT;
138
139
+ if (line_term)
140
+ printf("?%s", oid_to_hex(&entry->entry.oid));
141
+ else
142
+ printf("%s%cmissing=yes", oid_to_hex(&entry->entry.oid),
143
+ info_term);
144
+
145
if (!print_missing_info) {
140
- printf("?%s\n", oid_to_hex(&entry->entry.oid));
146
+ putchar(line_term);
147
return;
148
}
149
150
if (entry->path && *entry->path) {
145
- struct strbuf path = STRBUF_INIT;
151
+ strbuf_addf(&sb, "%cpath=", info_term);
152
+
153
+ if (line_term) {
154
+ struct strbuf path = STRBUF_INIT;
155
147
- strbuf_addstr(&sb, " path=");
148
- quote_path(entry->path, NULL, &path, QUOTE_PATH_QUOTE_SP);
149
- strbuf_addbuf(&sb, &path);
156
+ quote_path(entry->path, NULL, &path, QUOTE_PATH_QUOTE_SP);
157
+ strbuf_addbuf(&sb, &path);
158
151
- strbuf_release(&path);
159
+ strbuf_release(&path);
160
+ } else {
161
+ strbuf_addstr(&sb, entry->path);
162
+ }
163
}
164
if (entry->type)
154
- strbuf_addf(&sb, " type=%s", type_name(entry->type));
165
+ strbuf_addf(&sb, "%ctype=%s", info_term, type_name(entry->type));
166
+
167
+ fwrite(sb.buf, sizeof(char), sb.len, stdout);
168
+ putchar(line_term);
169
156
- printf("?%s%s\n", oid_to_hex(&entry->entry.oid), sb.buf);
170
strbuf_release(&sb);
171
}
172
796
if (revs.graph || revs.verbose_header || show_disk_usage ||
797
info.show_timestamp || info.header_prefix || bisect_list ||
798
use_bitmap_index || revs.edge_hint || revs.left_right ||
786
- revs.cherry_mark || arg_missing_action)
799
+ revs.cherry_mark)
800
die(_("-z option used with unsupported option"));
801
}
802