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-push: fix bad combination of --change and --branch #3348

Merged
merged 5 commits into from
Mar 24, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Mar 23, 2024

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

yuja added 5 commits March 24, 2024 10:47
It's unclear whether --change should precede or not, but it's wrong to try to
push the same branch twice.
…updates

It could be moved before set_local_branch_target() to not update the local
branch, but it seemed weird that --change is silently ignored. This
inconsistency will be addressed later.
This is the common pattern among other classify() loops. I also changed the
set to hold &str as it doesn't need owned strings.
… state

This fixes --change/--branch conflicts by making --change precede --branch. I
don't think this is the most obvious behavior, but it's the easiest workaround.
@yuja yuja force-pushed the push-xyytvrqwuroy branch from 20d6010 to fc87044 Compare March 24, 2024 01:52
@yuja yuja merged commit f312307 into jj-vcs:main Mar 24, 2024
16 checks passed
@yuja yuja deleted the push-xyytvrqwuroy branch March 24, 2024 07:20
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