From: Jakub Narebski Date: Fri, 16 Oct 2009 22:19:59 GMT Subject: Re: [PATCH 3/3] Add proof-of-concept %[w(width,in1,in2)<>%] implementation Message-ID: <200910170020.01756.jnareb@gmail.com> In-Reply-To: <7v3a5jupr7.fsf@alter.siamese.dyndns.org> On Fri, 16 Oct 2009, Junio C Hamano wrote: > Jakub Narebski writes: > > > I don't remember what were original parameters to w(72,4,8) means... > > "man git-shortlog" look for -w. Thanks. So those would be: -w[[,[,]]]:: Linewrap the output by wrapping each line at `width`. The first line of each entry is indented by `indent1` spaces, and the second and subsequent lines are indented by `indent2` spaces. `width`, `indent1`, and `indent2` default to 76, 6 and 9 respectively. I think better solution might be to give _string_ to use for initial and subsequent indent rather than number of spaces... well, at least more generic one, allowing one to use e.g. "\t" (TAB) character to indent, or indent in the following way: * Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. [...] But even with original w(,,) we can get output of bare "git log" using pretty format... well, almost; it would be the same if there was ability to put infinite width, and there doesn't seem to be specifier for the whole, unchanged commit message (subject, unwrapped + separating lines + body). -- Jakub Narebski Poland