branch_target function

Get target (sha) pointed to by a branch