> I'd finish the sentence here. > [...] > We don't describe the advice in the documentation of the other > options so I'd drop it.
Will be done in v3.
> That's true for other worktrees, but not the current worktree where > the reason is that we'll end up losing work. I'd split it up
We can split it up. A worktree that has the branch checked out can be left with an index and working tree that no longer match the branch. A rebase is a different problem which is the same in every worktree, i.e. if the branch is rewritten during the rebase, "git rebase --continue" either fails, or throws the rewrite away, and "git rebase --abort" brings back the old branch. In the docs I will group the reasons by what is happening to the branch, not by which worktree it is in.
> A branch that is being bisected in the current worktree cannot be > rewritten because ... (is there actually a good reason?)
I rewrote the branch by hand while it was being bisected in the current worktree and in a different one. Bisect could continue and "git bisect reset" checked out the rewritten branch without problems. One thing I noticed is that the result points to a commit from the old history, which is no longer on the branch. I included this check because "git branch -f" and "git rebase --update-refs" also leave a branch alone while it is being bisected. I am in favour of keeping it. Suggestions?