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

rewrite: move_commits: add MoveCommitsTarget enum to specify roots or commits to move #4656

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

bnjmnt4n
Copy link
Member

This also allows some minor optimizations to be performed, such as avoiding recomputation of the connected target set when MoveCommitsTarget::Roots is used since the connected target set is identical to the target set (all descendants of the roots).

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

lib/src/rewrite.rs Outdated Show resolved Hide resolved
lib/src/rewrite.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

Thanks.

lib/src/rewrite.rs Outdated Show resolved Hide resolved
lib/src/rewrite.rs Outdated Show resolved Hide resolved
lib/src/rewrite.rs Outdated Show resolved Hide resolved
lib/src/rewrite.rs Outdated Show resolved Hide resolved
@bnjmnt4n bnjmnt4n force-pushed the bnjmnt4n/push-zlrppuytmrxs branch from 0a83d6a to 6a55e1e Compare October 17, 2024 08:31
lib/src/rewrite.rs Outdated Show resolved Hide resolved
@bnjmnt4n bnjmnt4n force-pushed the bnjmnt4n/push-zlrppuytmrxs branch 3 times, most recently from e11021b to 45cceab Compare October 19, 2024 11:02
@bnjmnt4n bnjmnt4n force-pushed the bnjmnt4n/push-zlrppuytmrxs branch from 45cceab to 1782649 Compare October 22, 2024 11:02
@bnjmnt4n
Copy link
Member Author

@yuja @samueltardieu I've updated some of the function names and made the suggested tweaks. Do you think there's anything else which should be changed?

Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

These looks good to me, thanks.

lib/src/rewrite.rs Outdated Show resolved Hide resolved
…or commits to move

This also allows some minor optimizations to be performed, such as
avoiding recomputation of the connected target set when
`MoveCommitsTarget::Roots` is used since the connected target set is
identical to the target set (all descendants of the roots).
@bnjmnt4n bnjmnt4n force-pushed the bnjmnt4n/push-zlrppuytmrxs branch from 1782649 to ead1802 Compare October 22, 2024 12:19
@bnjmnt4n bnjmnt4n enabled auto-merge (rebase) October 22, 2024 12:29
@bnjmnt4n bnjmnt4n merged commit 0a38fdc into main Oct 22, 2024
31 checks passed
@bnjmnt4n bnjmnt4n deleted the bnjmnt4n/push-zlrppuytmrxs branch October 22, 2024 12:39
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.

3 participants