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

sparse: parse/print workspace-relative paths, extract more subcommands #3388

Merged
merged 5 commits into from
Mar 29, 2024

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Mar 28, 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 28, 2024 23:24
Per comment in
jj-vcs#3379 (review)

Though cwd-relative path might be useful for --remove, I don't think that's
the common use case. The new behavior is consistent with --edit.
…lock

I assumed locked_wc.sparse_patterns() is cheap operation. If it isn't, a
locked_ws/wc should be passed to the callback instead.
Even though --edit can be combined with --add/--remove/--clear/--reset, I don't
think it's practically useful.
Since "set --add" removes duplicated patterns, it makes sense for "edit" to do
the same thing.
Since --reset conflicts with the other flags, "set --reset" seems odd.
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.

Thank you! Those changes all make sense to me.

cli/src/commands/sparse.rs Show resolved Hide resolved
@yuja yuja merged commit dcf7578 into jj-vcs:main Mar 29, 2024
16 checks passed
@yuja yuja deleted the push-oyxtzzmwsxst branch March 29, 2024 02:02
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