{"version":"2.1.233","anchor":"git-head-check-asks-git-for-a-yes-or-no","canonical_anchor":"git-head-check-asks-git-for-a-yes-or-no","heading":"Git HEAD check asks git for a yes or no","tier":"internal","area":"Elsewhere","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233\/e\/git-head-check-asks-git-for-a-yes-or-no","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.233","markdown":"### Git HEAD check asks git for a yes or no\n\nThe check for whether your repo has any commits now just asks git directly.\n\n**What**\n\nThe worktree code checks whether HEAD points at a commit by letting git succeed or fail quietly, rather than capturing the commit id and testing it against a hex pattern.\n\n**Evidence**\n\n`\"--verify\",`\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}