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

watchman: minor code cleanup #2596

Merged
merged 4 commits into from
Nov 23, 2023
Merged

watchman: minor code cleanup #2596

merged 4 commits into from
Nov 23, 2023

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Nov 19, 2023

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

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.

LGTM, but maybe @arxanas can confirm your description of the last commit.

lib/src/repo_path.rs Show resolved Hide resolved
lib/src/local_working_copy.rs Show resolved Hide resolved
Copy link
Contributor

@arxanas arxanas left a comment

Choose a reason for hiding this comment

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

Thanks for confirming re FilesMatcher.

lib/src/repo_path.rs Show resolved Hide resolved
yuja added 4 commits November 23, 2023 09:54
Since the caller wants repo-relative paths, it doesn't make sense to convert
them back and forth.
We only need &self.working_copy_path here.
If I understand it, watchman returns changed files and directories, and a
directory change doesn't mean we need to scan all files under the directory.
@yuja yuja force-pushed the push-nmmwoqzsytsq branch from 37220d6 to 100bccf Compare November 23, 2023 00:56
@yuja yuja merged commit 1ddcaa4 into jj-vcs:main Nov 23, 2023
15 checks passed
@yuja yuja deleted the push-nmmwoqzsytsq branch November 23, 2023 01:06
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