branch: add read_branch_desc() helper function