Set a branch's upstream branch
This will update the configuration to set the branch named branch_name as the upstream of branch. Pass a NULL name to unset the upstream information.
@note the actual tracking reference must have been already created for the operation to succeed.
@param branch the branch to configure @param branch_name remote-tracking or local branch to set as upstream.
@return 0 on success; GIT_ENOTFOUND if there's no branch named branch_name or an error code
See Implementation
Set a branch's upstream branch
This will update the configuration to set the branch named branch_name as the upstream of branch. Pass a NULL name to unset the upstream information.
@note the actual tracking reference must have been already created for the operation to succeed.
@param branch the branch to configure @param branch_name remote-tracking or local branch to set as upstream.
@return 0 on success; GIT_ENOTFOUND if there's no branch named branch_name or an error code