]> git.ipfire.org Git - thirdparty/git.git/commit
rev-list: inline `show_object_with_name()` in `show_object()`
authorJustin Tobler <jltobler@gmail.com>
Wed, 19 Mar 2025 18:34:06 +0000 (13:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 10:40:02 +0000 (03:40 -0700)
commit1481e291129de8c9be8f85cee55071ce9dbc6e91
tree7aee8323efb78d9d603735735b8f6317cd7a9343
parent87a0bdbf0f72b7561f3cd50636eee33dcb7dbcc3
rev-list: inline `show_object_with_name()` in `show_object()`

The `show_object_with_name()` function only has a single call site.
Inline call to `show_object_with_name()` in `show_object()` so the
explicit function can be cleaned up and live closer to where it is used.
While at it, factor out the code that prints the OID and newline for
both objects with and without a name. In a subsequent commit,
`show_object()` is modified to support printing object information in a
NUL-delimited format.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c
revision.c
revision.h