_lp_git_branch: minor optimization