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

Allow jj git push to push multiple branches/changes at once #912

Merged
merged 4 commits into from
Dec 21, 2022

Conversation

ilyagr
Copy link
Contributor

@ilyagr ilyagr commented Dec 18, 2022

Also creates a short arg -b for --branch.

I haven't tried to make the code very pretty, but I got tests to pass.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • Only command-line help is planned for documentation
  • I have added tests to cover my changes

@ilyagr ilyagr changed the title Ig/push many Allow jj git push to push multiple branches/changes at once Dec 18, 2022
@ilyagr
Copy link
Contributor Author

ilyagr commented Dec 18, 2022

Ideally, i'd want to do something like jj git push -r main:@ to push all the branches in between @ and main, but that's a larger change that might need some thinking about the UI.

src/commands.rs Outdated Show resolved Hide resolved
src/commands.rs Outdated Show resolved Hide resolved
src/commands.rs Show resolved Hide resolved
src/commands.rs Outdated Show resolved Hide resolved
src/commands.rs Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
@ilyagr ilyagr enabled auto-merge (rebase) December 18, 2022 23:55
tests/test_git_push.rs Outdated Show resolved Hide resolved
tests/test_git_push.rs Outdated Show resolved Hide resolved
tests/test_git_push.rs Outdated Show resolved Hide resolved
tests/test_git_push.rs Outdated Show resolved Hide resolved
src/commands.rs Show resolved Hide resolved
src/commands.rs Outdated Show resolved Hide resolved
@ilyagr ilyagr force-pushed the ig/push_many branch 5 times, most recently from 15f35d1 to c542f8d Compare December 19, 2022 02:30
tests/test_git_push.rs Outdated Show resolved Hide resolved
tests/test_git_push.rs Outdated Show resolved Hide resolved
src/commands.rs Outdated Show resolved Hide resolved
tests/test_git_push.rs Outdated Show resolved Hide resolved
Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

Thanks

@ilyagr ilyagr merged commit 0285a20 into main Dec 21, 2022
@ilyagr ilyagr deleted the ig/push_many branch December 21, 2022 08:52
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