Skip to content

Use merge instead of rebase to sync other developers' changes in basic mode #504

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

Closed
wants to merge 1 commit into from

Conversation

isc-pbarton
Copy link
Collaborator

@isc-pbarton isc-pbarton commented Sep 30, 2024

Fixes #503
The logic we were using previously to list files that needed to be imported after a rebase was broken. This change fixes it by using a merge instead of a rebase. We originally went with rebase because the git commit history looks nicer that way, but I think merge is going to be a lot simpler to support.

Copy link
Collaborator

@isc-tleavitt isc-tleavitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isc-pbarton we're going to need a corresponding update to SourceControl.Git.Util.ProductionConflictResolver:Resolve to change rebase --continue to merge --continue.

In general I prefer the idea of rebasing over merging from a history/tracking perspective, especially for cases where we're using the deployment manager on top of the main branch; merges are going to end up being deceptive. Is it possible to just fix the diff command?

@isc-pbarton
Copy link
Collaborator Author

That's fair, I'll look into fixing the diff instead.

@raymond-rebbeck
Copy link
Contributor

I have not used basic mode at all but I too prefer rebasing over merging or at the very least having a choice.

@isc-pbarton
Copy link
Collaborator Author

Going to close this out and create a new merge request with the rebase fix.

@isc-pbarton isc-pbarton closed this Oct 1, 2024
@isc-pbarton isc-pbarton deleted the fix-merge-remote branch October 1, 2024 15:57
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.

Merging default remote branch does not import changed code
3 participants