Re: [PATCH v13 00/12] port tag.c to use ref-filter APIs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 25, 2015, 19:43 UTC
- Message-ID
- <xmqqvbc3xifj.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <xmqqzj1fxjpj.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 13 quoted lines
> I didn't check how wide the original is supposed to be, but perhaps > changing builtin/tag.c this way > > if (filter->lines) > - format = "%(align:16,left)%(refname:short)%(end)"; > + format = "%(align:15,left)%(refname:short)%(end) "; > else > format = "%(refname:short)"; > } > > may be one way to fix it. Check the original "tag -l" output for > tags whose names are 14, 15, 16 and 17 display-columns wide and try > to match it.
Heh, I did it myself. %(align:15) with trailing whitespace is what you want.
An alternative way to spell it would be
"%(align:16,left)%(refname:short) %(end)"
I don't know which one is more readable, though.