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

Teach jj squash --from/--into, deprecate jj move #3271

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

martinvonz
Copy link
Owner

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

CHANGELOG.md Outdated Show resolved Hide resolved
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.

nice

CHANGELOG.md Outdated Show resolved Hide resolved
cli/src/commands/squash.rs Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
This was proposed by @Brixy in
#2882 a while ago. There
seems to be pretty strong consensus that it's a good idea.

I've copied the added test cases from `test_move_command.rs`, just
replacing `move` by `squash`, `--to` by `--into`, and deleting the
test of a no-arg invocation (`jj move` fails, `jj squash` does not -
it defaults to squashing into the parent).
Per discussion in
#2882. `jj squash` now has
all the functionality.
@martinvonz
Copy link
Owner Author

I mentioned this PR on Discord and heard only votes for it, so I'll go ahead and merge this.

@martinvonz martinvonz merged commit e9655db into main Mar 11, 2024
16 checks passed
@martinvonz martinvonz deleted the push-qmouznkumpmz branch March 11, 2024 16:25
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