• Clemens Hammacher's avatar
    Fix semantics of git new-branch --upstream · ba83229a
    Clemens Hammacher authored
    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/1350748Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Auto-Submit: Clemens Hammacher <clemensh@chromium.org>
    ba83229a
Name
Last commit
Last update
..
gstools Loading commit data...
auth_test.py Loading commit data...
bot_update_coverage_test.py Loading commit data...
checkout_test.py Loading commit data...
cipd_bootstrap_test.py Loading commit data...
download_from_google_storage_unittest.py Loading commit data...
fix_encoding_test.py Loading commit data...
gclient_eval_unittest.py Loading commit data...
gclient_scm_test.py Loading commit data...
gclient_smoketest.py Loading commit data...
gclient_test.py Loading commit data...
gclient_utils_test.py Loading commit data...
git_cache_test.py Loading commit data...
git_cl_creds_check_report.txt Loading commit data...
git_cl_test.py Loading commit data...
git_common_test.py Loading commit data...
git_dates_test.py Loading commit data...
git_drover_test.py Loading commit data...
git_footers_test.py Loading commit data...
git_hyper_blame_test.py Loading commit data...
git_number_test.py Loading commit data...
git_rebase_update_test.py Loading commit data...
gsutil_test.py Loading commit data...
metrics_test.py Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch_test.py Loading commit data...
presubmit_unittest.py Loading commit data...
recipes_test.py Loading commit data...
roll_dep_test.py Loading commit data...
scm_unittest.py Loading commit data...
subprocess2_test.py Loading commit data...
upload_to_google_storage_unittest.py Loading commit data...
watchlists_unittest.py Loading commit data...