diff options
author | Karthik Nayak <karthik.188@gmail.com> | 2017-01-10 14:19:39 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-10 12:44:31 -0800 |
commit | 99c6a71d4f7f4197f5e8600b0edec2a6a9fd9988 (patch) | |
tree | acdc584bfd462d02aeb3ee893872f5d266833a69 /tar.h | |
parent | ref-filter: move get_head_description() from branch.c (diff) | |
download | tgif-99c6a71d4f7f4197f5e8600b0edec2a6a9fd9988.tar.xz |
ref-filter: introduce format_ref_array_item()
To allow column display, we will need to first render the output in a
string list to allow print_columns() to compute the proper size of
each column before starting the actual output. Introduce the function
format_ref_array_item() that does the formatting of a ref_array_item
to an strbuf.
show_ref_array_item() is kept as a convenience wrapper around it which
obtains the strbuf and prints it the standard output.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tar.h')
0 files changed, 0 insertions, 0 deletions