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

cli: move some git utilities to new crate::git_utils #2855

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

thoughtpolice
Copy link
Member

Gerrit also needs to be able to push low-level refs into upstream remotes, just like jj git push does. Doing so requires providing callbacks e.g. for various password entry mechanisms, which was private to the git command module.

Pull these out to a new module git_utils so we can reuse it across the two call sites.

This also moves a few other strictly Git-related functions into git_utils as well, just for the sake of consistency.

Note: This was cut out of #2845 to keep the review smaller and also because it's largely procedural and simple.

Gerrit also needs to be able to push low-level refs into upstream remotes, just
like `jj git push` does. Doing so requires providing callbacks e.g. for various
password entry mechanisms, which was private to the `git` command module.

Pull these out to a new module `git_utils` so we can reuse it across the two
call sites.

This also moves a few other strictly Git-related functions into `git_utils`
as well, just for the sake of consistency.

Signed-off-by: Austin Seipp <[email protected]>
@thoughtpolice thoughtpolice self-assigned this Jan 20, 2024
@thoughtpolice thoughtpolice merged commit bd11030 into main Jan 20, 2024
15 checks passed
@thoughtpolice thoughtpolice deleted the aseipp/push-ytuyxomwyupy branch January 20, 2024 21:58
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