def _need_branch_change(branch, local_branch):
    return branch is not None and branch != local_branch
Short hand for telling when a new branch is needed
dataset/ETHPy150Open saltstack/salt/salt/states/git.py/_need_branch_change