diff options
author | Jeff King <peff@peff.net> | 2016-02-11 17:24:18 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-12 12:51:08 -0800 |
commit | f9fb9d0e3caebe97c54c101d8235e6529d5a1273 (patch) | |
tree | 4688ceab85cdc756f6447a521333f939bf456833 /list-objects.c | |
parent | 415959387e0642842be7aad05fa5d95ea4ed350f (diff) | |
download | git-f9fb9d0e3caebe97c54c101d8235e6529d5a1273.tar.gz |
show_object_with_name: simplify by using path_name()
When "git rev-list" shows an object with its associated path
name, it does so by walking the name_path linked list and
printing each component (stopping at any embedded NULs or
newlines).
We'd like to eventually get rid of name_path entirely in
favor of a single buffer, and dropping this custom printing
code is part of that. As a first step, let's use path_name()
to format the list into a single buffer, and print that.
This is strictly less efficient than the original, but it's
a temporary step in the refactoring; our end game will be to
get the fully formatted name in the first place.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects.c')
0 files changed, 0 insertions, 0 deletions