Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtree update automation: do not use git subtree merge --squash #292

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tautschnig
Copy link
Member

git subtree merge --squash will always reset the subtree to the state of the tree that is being merged from, which effectively eradicates all our local changes. This was just masked by merge conflicts arising as we were always attempted to merge from some long-ago version as we hadn't consistently kept "git-subtree-split" markers.

This PR now amends the pull request descriptions to make sure we retain the necessary information and uses git merge instead of the subtree command.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

`git subtree merge --squash` will always reset the subtree to the state
of the tree that is being merged from, which effectively eradicates all
our local changes. This was just masked by merge conflicts arising as we
were always attempted to merge from some long-ago version as we hadn't
consistently kept "git-subtree-split" markers.

This PR now amends the pull request descriptions to make sure we retain
the necessary information and uses `git merge` instead of the subtree
command.
@carolynzech
Copy link

Have you tested this on your fork? This looks reasonable, but it'd be nice to have some testing before merging.

@tautschnig
Copy link
Member Author

Have you tested this on your fork? This looks reasonable, but it'd be nice to have some testing before merging.

Ack - I have tested this locally, but I will test once we have #290 merged and an updated toolchain in Kani. Putting this in draft mode for the time being.

@tautschnig tautschnig self-assigned this Mar 21, 2025
@tautschnig tautschnig marked this pull request as draft March 21, 2025 20:56
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.

2 participants