def _compare_to_remote(remote, local_branch, remote_branch=None):
 remote_branch = (remote_branch if remote_branch else local_branch)
 git_remote = ('%s/%s' % (remote, remote_branch))
 return _git_diff_name_status(git_remote, local_branch)

def _compare_to_remote ( remote , local_branch , remote_branch = None ) : remote_branch = ( remote_branch if remote_branch else local_branch ) git_remote = ( '%s/%s' % ( remote , remote_branch ) ) return _git_diff_name_status ( git_remote , local_branch )
compare local with remote branch with git diff .