Here are slightly more cleaned-up versions of patches I've thrown out in the last few days. The aim is to make the information on upstream/tracking relationships more accessible both to scripts and to users. 1/5: for-each-ref: refactor get_short_ref function 2/5: for-each-ref: refactor refname handling Cleanup for 3/5. 3/5: for-each-ref: add "upstream" format field Plumbing support. 4/5: make get_short_ref a public function Clean up for 4/5. Builds on 1/5. 5/5: branch: show upstream branch when double verbose -Peff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html