Skip to content

Conversation

axosoft-ramint
Copy link
Contributor

Closes #4637

Strategy here is to create an empty base commit without touching the working tree by using temporary index and commit-tree, then pointing HEAD to it, and then there is a commit that we can stash on temporarily. We then proceed to create the composer commits as patches and commit them with a similar strategy, except they are on another temporary index off the root sha. Then when we reset, our stash and empty commit are orphaned but still accessible. We pop the stash as normal and then let garbage collection eliminate the temporary empty commit we created.

@axosoft-ramint axosoft-ramint self-assigned this Oct 3, 2025
@axosoft-ramint axosoft-ramint requested a review from eamodio October 3, 2025 21:33
@axosoft-ramint axosoft-ramint force-pushed the feature/composer-no-base-commit branch from 4b8ebee to 2525c58 Compare October 8, 2025 17:01
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.

Add support for using commit composer without a base commit
1 participant