Thread (1 message) 1 message, 1 author, 2022-02-01

Re: [PATCH v8 2/6] branch: make create_branch() always create a branch

From: Junio C Hamano <hidden>
Date: 2022-02-01 22:20:56

Glen Choo [off-list ref] writes:
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.
A very nice simplifiation of semantics.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help