summaryrefslogtreecommitdiff
path: root/Documentation/config/man.txt
diff options
context:
space:
mode:
authorLibravatar Glen Choo <chooglen@google.com>2022-01-28 16:04:42 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-01 14:18:49 -0800
commitbc0893cf3b0ee376ef5b6ed293b1525480a9d720 (patch)
tree4bb458d2053d0a84494e0417dbd156e421314893 /Documentation/config/man.txt
parentbranch: move --set-upstream-to behavior to dwim_and_setup_tracking() (diff)
downloadtgif-bc0893cf3b0ee376ef5b6ed293b1525480a9d720.tar.xz
branch: make create_branch() always create a branch
With the previous commit, there are no more invocations of create_branch() that do not create a branch because: * BRANCH_TRACK_OVERRIDE is no longer passed * clobber_head_ok = true and force = false is never passed Assert these situations, delete dead code and ensure that we're handling clobber_head_ok and force correctly by introducing tests for `git branch --force`. As a result, create_branch() now always creates a branch. Helped-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Glen Choo <chooglen@google.com> Reviewed-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/man.txt')
0 files changed, 0 insertions, 0 deletions