You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/man/html
Clemens Hammacher ba83229a73 Fix semantics of git new-branch --upstream
Currently, the "--upstream A" option for new-branch behaves totally
different than "--upstream_current". While "--upstream A" checks out
branch A and then creates a new branch which tracks A,
"--upstream_current" creates a new branch for the current HEAD and sets
the upstream to the previously checked out branch.

As the documentation does not mention that any of the options changes
the currently-checked-out commit (HEAD), this CL changes the semantics
of "git new-branch --upstream A B" to be identical to "git checkout -b B
&& git branch --set-upstream-to A".

It also slightly extends the documentation to mention that in any case
the new branch is based on HEAD.

R=iannucci@chromium.org

Change-Id: Ic335d2caf27cb6afca1b8bc5a008424c0e880fca
Reviewed-on: https://chromium-review.googlesource.com/c/1350748
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Auto-Submit: Clemens Hammacher <clemensh@chromium.org>
7 years ago
..
depot_tools.html Remove old git-cherry-pick-upload documentation 8 years ago
depot_tools_tutorial.html
git-cl.html
git-drover.html
git-footers.html
git-freeze.html
git-hyper-blame.html
git-map-branches.html
git-map.html
git-mark-merge-base.html
git-nav-downstream.html
git-nav-upstream.html
git-new-branch.html Fix semantics of git new-branch --upstream 7 years ago
git-rebase-update.html
git-rename-branch.html
git-reparent-branch.html
git-retry.html
git-squash-branch.html
git-thaw.html
git-upstream-diff.html Fix minor regression in git_upstream_diff. 8 years ago