Re: [PATCH v8 2/6] branch: make create_branch() always create a branch
Glen Choo <chooglen@google.com> writes:
Show 9 quoted lines
> 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.