Skip to content

fix(commit): don't calculate changes when committing to head.#60

Merged
sammyfischer merged 1 commit into
mainfrom
fix-commit
May 16, 2026
Merged

fix(commit): don't calculate changes when committing to head.#60
sammyfischer merged 1 commit into
mainfrom
fix-commit

Conversation

@sammyfischer
Copy link
Copy Markdown
Owner

  • when committing to HEAD, use index as the tree to commit and stop there (there should never be any conflicts when committing to HEAD)
  • only perform computation when committing a different branch
  • use merge to calculate changes instead of apply

Instead, use index as tree to commit. When committing to another branch,
use merge to compute changes instead of apply.
@sammyfischer sammyfischer merged commit d57eebc into main May 16, 2026
@sammyfischer sammyfischer deleted the fix-commit branch May 16, 2026 21:12
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