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: Refactor reset_head to share set_git_head_target call #3774

Merged
merged 1 commit into from
May 29, 2024

Conversation

mlcui-corp
Copy link
Collaborator

This shares some common code to both the root and the non-root case, and provides easier access to mut_repo in the function - as set_git_head_target mutably borrows mut_repo.

This will be used for a cleaner implementation of #3767.

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

Copy link
Collaborator

@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/git.rs Outdated Show resolved Hide resolved
This shares some common code to both the root and the non-root case, and
provides easier access to `mut_repo` in the function - as
`set_git_head_target` mutably borrows `mut_repo`.

This will be used for a cleaner implementation of martinvonz#3767.
@mlcui-corp mlcui-corp force-pushed the push-kwkzoxrolmkn branch from ebd1370 to c470d83 Compare May 29, 2024 05:35
@mlcui-corp mlcui-corp enabled auto-merge (rebase) May 29, 2024 05:39
@mlcui-corp mlcui-corp merged commit e4cfbc1 into martinvonz:main May 29, 2024
16 checks passed
@mlcui-corp mlcui-corp deleted the push-kwkzoxrolmkn branch May 29, 2024 05:49
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