Re: [PATCH v3 2/5] ref-filter: add function to print single ref_array_item
W dniu 01.10.2016 o 00:18, santiago@nyu.edu pisze:
Show 8 quoted lines
> From: Lukas Puehringer <luk.puehringer@gmail.com>
>
> 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 format_ref function to create, pretty print and free individual
> ref-items.
It's now pretty_print_ref, not format_ref (old version in commit message).
[...]
> +void pretty_print_ref(const char *name, const unsigned char *sha1,
> + const char *format, unsigned kind)