From: Eric Sunshine Date: Sun, 17 Mar 2013 09:03:23 GMT Subject: Re: [PATCH 10/12] pretty: support padding placeholders, %< %> and %>< Message-ID: In-Reply-To: <1363400683-14813-11-git-send-email-pclouds@gmail.com> On Fri, Mar 15, 2013 at 10:24 PM, Nguyễn Thái Ngọc Duy wrote: > Either %<, %> or %<> standing before a placeholder specifies how many s/%<>/%> diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt > index 8734224..87ca2c4 100644 > --- a/Documentation/pretty-formats.txt > +++ b/Documentation/pretty-formats.txt > @@ -162,6 +162,14 @@ The placeholders are: > - '%x00': print a byte from a hex code > - '%w([[,[,]]])': switch line wrapping, like the -w option of > linkgit:git-shortlog[1]. > +- '%<()': make the next placeholder take at least N columns, > + padding spaces on the right if necessary > +- '%<|()': make the next placeholder take at least until Nth > + columns, padding spaces on the right if necessary > +- '%>()', '%>|()': similar to '%<(/g > + respectively, but padding spaces on the left > +- '%><()', '%><|()': similar to '%<(/g > + respectively, but padding both sides (i.e. the text is centered)