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: branch: split modules and do minor cleanup #3929

Merged
merged 7 commits into from
Jun 20, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Jun 20, 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 6 commits June 20, 2024 13:13
This is another big subcommand module. Let's split it up.

I'm not a big fan of r#move syntax, but we already have one in src/commands,
so there's no point to avoid it.
There are no other "args" in this context.
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!

cli: branch: reject non-empty branch name consistently by "set"

Drop "non-"?

cli/src/commands/branch/mod.rs Outdated Show resolved Hide resolved
Though "branch set" can't create new branch, this should provide a better error
message.
@yuja yuja force-pushed the push-umowknvnqyxv branch from b8fbd93 to fca1e4f Compare June 20, 2024 07:43
@yuja
Copy link
Contributor Author

yuja commented Jun 20, 2024

Drop "non-"?

Doh, bad English, fixed.

@yuja yuja merged commit 5988a00 into jj-vcs:main Jun 20, 2024
17 checks passed
@yuja yuja deleted the push-umowknvnqyxv branch June 20, 2024 08:00
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