{"version":"2.1.248","anchor":"local-only-work-check-can-trust-the-main-checkout","canonical_anchor":"local-only-work-check-can-trust-the-main-checkout","heading":"Local-only work check can trust the main checkout","tier":"notice","area":"Worktrees","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/local-only-work-check-can-trust-the-main-checkout","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Local-only work check can trust the main checkout\n\nYou get fewer false \"you have unpushed work\" warnings when the main checkout already has them.\n\n**What**\n\nThe 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.\n\n**Details**\n\n- Enabled by an option passed by the caller; the source here does not show its default.\n- A new helper confirms the repository is not bare and that the main checkout's HEAD reference matches before the vouch is accepted.\n\n**Evidence**\n\n`{ primaryCheckoutVouches: r }`\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}