Re: [PATCH v2 0/3] Towards a useable git-branch
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 29, 2013, 03:04 UTC
- Message-ID
- <CACsJy8Dvpn0u1i8M7uxsB=t4NE5v78=gYiY=XFC=KK7f4D=N=w@mail.gmail.com>
- In-Reply-To
- <CALkWK0kv-5vAMsrtpPffBaSZrHfm98KNDL8Jw6_pSLsL=8=8iA@mail.gmail.com>
On Tue, May 28, 2013 at 9:28 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 11 quoted lines
> Ramkumar Ramachandra wrote: >> %>(N) doesn't work properly with f-e-r, and I'm not sure why. I'm not >> talking about your last patch where you compute * -- that works fine; >> it's just that %>(N) doesn't when N is a concrete number. > > Try this: > > %(refname:short)%>(30)%(upstream:short) > > (assuming that you have lots of branches). I'm noticing random > alignment problems.
It's because you don't pad enough spaces after %(refname:short) so the starting point of %(upstream:short) on each line is already unaligned, I think. Try this:
%<(*)%(refname:short)%>(30)%(upstream:short)
or if you prefer at specific column (e.g. align upstream close to the 60th column, regardless of refname's length):
%(refname:short)%>|(60)%(upstream:short) -- Duy