From: Jakub Narębski Date: Fri, 30 Sep 2016 23:12:23 GMT Subject: Re: [PATCH v3 2/5] ref-filter: add function to print single ref_array_item Message-ID: <0e3cc036-787b-d93b-dc87-47a0826ec919@gmail.com> In-Reply-To: <20160930221806.3398-3-santiago@nyu.edu> W dniu 01.10.2016 o 00:18, santiago@nyu.edu pisze: > From: Lukas Puehringer > > 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)