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

git sync: Rebase commits onto new branch heads. #4913

Closed
wants to merge 1 commit into from

Conversation

essiene
Copy link
Collaborator

@essiene essiene commented Nov 19, 2024

Summary

  • Get branch pre-fetch heads
  • Build candidates from prefetch heads
  • Fetch from remotes
  • Get branch post-fetch heads
  • Rebase
    • Build old -> new map
    • transform descendants

Details

  • implement CommitRewritter::repo() to return an immutable reference.
  • transform_descendants() roots are candidates with parents in update_record.
  • simplify parent merge
  • drop newly emptied commits
  • update new parents from the updated heads set if the old parents are ancestors.

Issue: #1039

## Summary
* [X] Get branch pre-fetch heads
* [X] Build candidates from prefetch heads
* [X] Fetch from remotes
* [X] Get branch post-fetch heads
* [X] Rebase
  * [X] Build old -> new map
  * [X] transform descendants


## Details
* implement CommitRewritter::repo() to return an immutable reference.
* transform_descendants() roots are candidates with parents in update_record.
* simplify parent merge
* drop newly emptied commits
* update new parents from the updated heads set if the old parents are ancestors.

Issue: #1039
@essiene essiene closed this Nov 23, 2024
@essiene essiene deleted the essiene/rmswqswouoxv branch November 23, 2024 11: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