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

Support watching a path even if it's a directory or nonexistent #21339

Closed
wants to merge 1 commit into from

Commits on Feb 15, 2024

  1. Support watching a path even if it's a directory or nonexistent

    - `rctx.watch()` now supports watching a path even if it's a directory or nonexistent.
      - a path's status changing counts triggers a refetch.
    - added `path.is_dir` so that users can tell whether a path points to a directory or a file.
    - added `watch_X` parameters to the following methods, with behavior similar to the `watch` parameter in `rctx.read()`
      - `rctx.extract()`, `rctx.patch()`, `rctx.template()` (for the template file), `rctx.symlink()` (for the symlink target)
    
    Work towards #20952.
    Wyverald committed Feb 15, 2024
    Configuration menu
    Copy the full SHA
    342b1b7 View commit details
    Browse the repository at this point in the history