]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.h
ref-filter: add function to print single ref_array_item
authorLukas Puehringer <luk.puehringer@gmail.com>
Tue, 17 Jan 2017 23:37:19 +0000 (18:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jan 2017 00:10:22 +0000 (16:10 -0800)
commit2111aa794bb420f767895682232b494d3461ab31
tree4d3c95589c1045888eb23de32d43ba2a06e6605b
parent94240b918f70560393516aa8f98edb877d582c69
ref-filter: add function to print single ref_array_item

ref-filter functions are useful for printing git object information
using a format specifier. However, some other modules may not want to use
this functionality on a ref-array but only print a single item.

Expose a pretty_print_ref function to create, pretty print and free
individual ref-items.

Signed-off-by: Lukas Puehringer <luk.puehringer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
ref-filter.h