Combine Git get_tag_revs and get_branch_revs into single get_refs method.