• Clemens Hammacher's avatar
    Revert "Fix semantics of git new-branch --upstream" · 19238fc3
    Clemens Hammacher authored
    This reverts commit ba83229a.
    
    Reason for revert: After mail discussion we came to the conclusion that the old behavior makes more sense.
    
    Original change's description:
    > 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>
    
    TBR=iannucci@chromium.org,tandrii@chromium.org,clemensh@chromium.org
    
    # Not skipping CQ checks because original CL landed > 1 day ago.
    
    Change-Id: I7463935af172f0801c7da94d2de106a02fc4c42e
    Reviewed-on: https://chromium-review.googlesource.com/c/1362972Reviewed-by: 's avatarSergiy Belozorov <sergiyb@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    19238fc3
Name
Last commit
Last update
..
.gitignore Loading commit data...
_aliases.txt Loading commit data...
_footer.txt Loading commit data...
_git-cl_desc.helper.txt Loading commit data...
_git-drover_desc.helper.txt Loading commit data...
_git-footers_desc.helper.txt Loading commit data...
_git-freeze_desc.helper.txt Loading commit data...
_git-hyper-blame_desc.helper.txt Loading commit data...
_git-map-branches_desc.helper.txt Loading commit data...
_git-map_desc.helper.txt Loading commit data...
_git-mark-merge-base_desc.helper.txt Loading commit data...
_git-nav-downstream_desc.helper.txt Loading commit data...
_git-nav-upstream_desc.helper.txt Loading commit data...
_git-new-branch_desc.helper.txt Loading commit data...
_git-rebase-update_desc.helper.txt Loading commit data...
_git-rename-branch_desc.helper.txt Loading commit data...
_git-reparent-branch_desc.helper.txt Loading commit data...
_git-retry_desc.helper.txt Loading commit data...
_git-squash-branch_desc.helper.txt Loading commit data...
_git-thaw_desc.helper.txt Loading commit data...
_git-upstream-diff_desc.helper.txt Loading commit data...
_helper_prefix.txt Loading commit data...
asciidoc-override.css Loading commit data...
common_demo_functions.sh Loading commit data...
demo_repo.sh Loading commit data...
depot_tools.txt Loading commit data...
depot_tools_tutorial.demo.walkthrough.sh Loading commit data...
depot_tools_tutorial.txt Loading commit data...
filter_demo_output.py Loading commit data...
git-cl.txt Loading commit data...
git-drover.demo.1.sh Loading commit data...
git-drover.demo.2.sh Loading commit data...
git-drover.demo.3.sh Loading commit data...
git-drover.demo.4.sh Loading commit data...
git-drover.demo.common.sh Loading commit data...
git-drover.txt Loading commit data...
git-footers.demo.1.sh Loading commit data...
git-footers.txt Loading commit data...
git-freeze.demo.1.sh Loading commit data...
git-freeze.txt Loading commit data...
git-hyper-blame.demo.1.sh Loading commit data...
git-hyper-blame.demo.2.sh Loading commit data...
git-hyper-blame.demo.common.sh Loading commit data...
git-hyper-blame.txt Loading commit data...
git-map-branches.demo.1.sh Loading commit data...
git-map-branches.txt Loading commit data...
git-map.demo.1.sh Loading commit data...
git-map.txt Loading commit data...
git-mark-merge-base.txt Loading commit data...
git-nav-downstream.demo.1.sh Loading commit data...
git-nav-downstream.txt Loading commit data...
git-nav-upstream.demo.1.sh Loading commit data...
git-nav-upstream.txt Loading commit data...
git-new-branch.demo.1.sh Loading commit data...
git-new-branch.txt Loading commit data...
git-rebase-update.txt Loading commit data...
git-rename-branch.txt Loading commit data...
git-reparent-branch.txt Loading commit data...
git-retry.txt Loading commit data...
git-squash-branch.demo.1.sh Loading commit data...
git-squash-branch.txt Loading commit data...
git-thaw.txt Loading commit data...
git-upstream-diff.txt Loading commit data...
make_docs.sh Loading commit data...
prep_demo_repo.sh Loading commit data...