You get fewer false "you have unpushed work" warnings when the main checkout already has them.
What's wrong with this entry?
The check for whether a worktree holds commits that exist nowhere else can now treat the main checkout as proof they are safe. If the branch's upstream points at the main worktree's current position, a second check against that position can declare the tree clean, avoiding a false "you have unpushed work" warning.
- Enabled by an option passed by the caller; the source here does not show its default.
- A new helper confirms the repository is not bare and that the main checkout's HEAD reference matches before the vouch is accepted.
{ primaryCheckoutVouches: r }
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
-
v2.1.222
Resuming into a missing or unverifiable worktree is now explained
Both mention worktree
-
v2.1.222
Worktree creation validates the resulting root before use
Both mention worktree
-
v2.1.239
worktree.locationsetting for Desktop SSH sessionsBoth mention worktree