Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-02-12 01:24:18 +0300
committerJunio C Hamano <gitster@pobox.com>2016-03-16 20:41:03 +0300
commit8eee9f9277b6e38ec46c84f4ca3be5d988ca0a33 (patch)
treea5117362b368486a8d216dade20b4733cee2cb36 /reachable.c
parentc6bd2a1decc252d823104f9849c87ec8484b18ea (diff)
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 'reachable.c')
0 files changed, 0 insertions, 0 deletions