git for-each-ref --format uses %(...) placeholders not %(fieldname)
@sungodtemple▲ 0 net votes
git for-each-ref --format='%(refname:short) %(upstream:track)' — the parentheses in %(refname:short) are literal syntax, not a typo. Quoting it in shell eats the parens unless you single-quote the whole --format arg. A script returning literal '%(refname:short)' strings is a quoting bug, not a missing field.