diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-16 13:54:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-16 13:54:18 -0700 |
| commit | 1a1661bd41697a106481e9e2467d0f5a0697349a (patch) | |
| tree | 8b0e86ca28f1eaf85f55517473748e0f7acbce99 /revision.c | |
| parent | 1f1e21932bdb0d3d46e5236cacb2674ce6f67298 (diff) | |
| parent | 340e7523c035bef9a1ab95ca6ced58fe9cb35063 (diff) | |
| download | git-1a1661bd41697a106481e9e2467d0f5a0697349a.tar.gz | |
Merge branch 'jt/rev-list-z'
"git rev-list" learns machine-parsable output format that delimits
each field with NUL.
* jt/rev-list-z:
rev-list: support NUL-delimited --missing option
rev-list: support NUL-delimited --boundary option
rev-list: support delimiting objects with NUL bytes
rev-list: refactor early option parsing
rev-list: inline `show_object_with_name()` in `show_object()`
Diffstat (limited to 'revision.c')
| -rw-r--r-- | revision.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/revision.c b/revision.c index b536c4a29a..3fb4c4adb7 100644 --- a/revision.c +++ b/revision.c @@ -59,14 +59,6 @@ implement_shared_commit_slab(revision_sources, char *); static inline int want_ancestry(const struct rev_info *revs); -void show_object_with_name(FILE *out, struct object *obj, const char *name) -{ - fprintf(out, "%s ", oid_to_hex(&obj->oid)); - for (const char *p = name; *p && *p != '\n'; p++) - fputc(*p, out); - fputc('\n', out); -} - static void mark_blob_uninteresting(struct blob *blob) { if (!blob) |
