Hi, On Thu, 22 Feb 2007, Junio C Hamano wrote: > Johannes Schindelin <Johannes.Schindelin@xxxxxx> writes: > > > With this patch, > > > > $ git show -s \ > > --pretty=format:' Ze komit %h woss%n dunn buy ze great %an' > > > > shows something like > > > > Ze komit 04c5c88 woss > > dunn buy ze great Junio C Hamano > > Does it say "This commit is by a fool whose name is blah"? Vy, it iss korrekt Churmen Inklish [Translation: Why, it is correct German "English"]... ;-) > > The supported placeholders are: > > > > '%H': commit hash > >... > > '%b': body > > Hmmm. Would we want to make them somehow interoperable with > git-for-each-ref format atoms? But those placeholders are so long! Not even GNU date supports such long placeholders... And I could not reuse interpolate.[ch] as is for that. > Also, it _might_ be worthwhile to do something like "%+4b" which means > "indent each line of this field with 4 spaces", for a multi-line field > like "%b". Same goes here: interpolate.[ch] does not (yet) allow for that. > > '%Cred': switch color to red > > '%Cgreen': switch color to green > > '%Cblue': switch color to blue > > '%Creset': reset color > > Hmmm. I strongly suspect that we would want to reuse code to grok > colors and attributes in color.c. And again... > > > --format 'committer %c\nauthor %a\n' > > > > > > this catches all combinations, and is easier for scripting. > > I do not have strong preference between "\n" and "%n". This would be easy, methink, to teach to interpolate(). Maybe I can overcome my laziness, and extend interpolate() so that it can actually call callbacks with callback data... Alternatively, I could imitate for-each-ref, and roll my own interpolate()? :-) Ciao, Dscho - 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