Code

for-each-ref --format='%(flag)'
authorJunio C Hamano <gitster@pobox.com>
Sat, 13 Feb 2010 20:05:44 +0000 (12:05 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Feb 2010 20:25:28 +0000 (12:25 -0800)
commit88fb7f27f6036028b3470e0e2a0efed1d9c7ee78
tree2125996b8f585c5a9439158aa5aad69f54e5aa18
parent5cdd628c84d808feb6ec407b2ecd74dfea63f865
for-each-ref --format='%(flag)'

This expands to "symref" or "packed" or an empty string, exposing the
internal "flag" the for_each_ref() callback functions are called with.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c