Re: [PATCH for "next"] pretty-formats: add 'format:<string>'
- From
Junio C Hamano <junkio@cox.net>
- Date
- Feb 23, 2007, 18:30 UTC
- Message-ID
- <7vabz44tgh.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.63.0702231237500.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 11 quoted lines
>> > 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.
What I was hinting at was to fix (or extend) for-each-ref to accept these short-and-sweet placeholders.
Show 5 quoted lines
>> 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.
Nah, if you feel it is too much work, I trust your judgement (I do not recall details of how interpolate.c does its thing). I do not think it's worth it.