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

Re: [PATCH] git-for-each-ref: add new field name "symbolic"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:48:14

Larry D'Anna [off-list ref] writes:
%(symbolic) will expand to "true" for symbolic refs, and "false" otherwise.
This is a lot faster than calling git-symbolic-ref on every single ref from your
shell script.
I think this is a good idea, but I suspect that much more than half of
people who iterate over for-each-ref output and run symbolic-ref would
actually want to learn what actual ref a symbolic one points at.  So you
may not be helping as much people as you could by going in this direction.

Instead of expanding to "true", why not make it show the expansion if it
is symbolic, and to empty if it is not?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help