Skip to content

feat(diff): add explicit endpoint modes#13

Merged
realityforge merged 1 commit into
mainfrom
codex/diff-endpoints
Jul 14, 2026
Merged

feat(diff): add explicit endpoint modes#13
realityforge merged 1 commit into
mainfrom
codex/diff-endpoints

Conversation

@realityforge

Copy link
Copy Markdown
Owner

Summary

  • add braid diff --head for recorded upstream base to downstream HEAD
  • add braid diff --index for recorded upstream base to index
  • preserve the worktree default and raw Git passthrough equivalents
  • document endpoint semantics and add unit, completion, and integration coverage

Why

The existing default intentionally combines committed, staged, and unstaged tracked mirror changes, while push reads committed mirror content from downstream HEAD. First-class endpoint flags make those comparisons discoverable without changing the established default or claiming to preview push eligibility.

Validation

  • bazel run @rules_go//go -- fmt ./...
  • bazel test --test_env=PATH //... (30/30 passed)
  • bazel run @rules_go//go -- vet ./...
  • bazel run @rules_go//go -- run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.0 run (0 issues)
  • bazel test --test_env=PATH //integration/... (7/7 passed)
  • git diff --check

Add first-class --head and --index comparisons while preserving the existing worktree default and raw Git passthrough forms.
@realityforge realityforge self-assigned this Jul 14, 2026
@realityforge realityforge enabled auto-merge July 14, 2026 22:48
@realityforge realityforge merged commit 155833b into main Jul 14, 2026
7 checks passed
@realityforge realityforge deleted the codex/diff-endpoints branch July 14, 2026 22:51
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