Skip to content

fix(sdk): support an explicitly unpublished git baseline - #33

Merged
matej21 merged 1 commit into
mainfrom
fix/git-status-missing-baseline
Sep 10, 2026
Merged

fix(sdk): support an explicitly unpublished git baseline#33
matej21 merged 1 commit into
mainfrom
fix/git-status-missing-baseline

Conversation

@matej21

@matej21 matej21 commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Extend Git status configuration with opt-in missingBase: "all" for a publication branch that does not exist yet.
  • Count every HEAD commit only after proving the baseline ref is absent. Existing-but-unreadable refs still yield no snapshot.
  • Pass the same explicit policy through GitCountAheadOptions and extend adapter conformance coverage.

This completes the initial-publication case for the configurable baseline added in #32. Default behavior is unchanged.

Verification

  • Real-Git tests cover an absent remote baseline with local main already advanced, the remote ref appearing later, and a damaged existing baseline. Both native Git and the GitClient path are covered.
  • Git status and adapter-conformance tests: 28 passed.
  • bun run ts:build, SDK test typecheck, and bun run lint passed.

@matej21
matej21 merged commit 212c10f into main Sep 10, 2026
1 check passed
@matej21
matej21 deleted the fix/git-status-missing-baseline branch September 10, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant