Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH for "next"] pretty-formats: add 'format:<string>'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:56

Johannes Schindelin [off-list ref] writes:
quoted
quoted
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.
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help