Add branches query (in prep for branch support).