Re: [PATCH v15 11/13] tag.c: use 'ref-filter' APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karthik Nayak <karthik.188@xxxxxxxxx> writes:

> +	if (filter->lines)
> +		format = to_free = xstrfmt("%%(align:15,left)%%(refname:short)%%(end) %%(contents:lines=%d)",
> +					   filter->lines);
> +	else
> +		format = "%(refname:short)";
> +
> +	verify_ref_format(format);
> +	filter_refs(&array, filter, FILTER_REFS_TAGS);
> +	ref_array_sort(sorting, &array);
> +
> +	for (i = 0; i < array.nr; i++)
> +		show_ref_array_item(array.items[i], format, 0);

Nice :-).

(I'd cut the string argument to xstrfmt after "%(end)" to avoid long
line)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]