Commit graph

318 commits

Author SHA1 Message Date
Félix Saparelli
967d53dfc0
docs: remove mentions of command-group 2024-10-14 12:10:45 +13:00
Félix Saparelli
71aa35a095
deps 2024-10-14 12:02:08 +13:00
Félix Saparelli
792ebf6d04
chore: Release 2024-10-14 11:43:27 +13:00
Егор Куклин
6c245d3aff
Whitelist files if explicitly watched (#859) 2024-08-21 12:20:09 +12:00
Егор Куклин
08367c6db7
Replace std::fs::canonicalize with dunce::canonicalize (#858)
Closes #830 by going back to non-UNC paths on windows
sample.bat:
```
echo Hello world
```
`cargo run -r -- .\sample.bat` now runs as expected.
Added the same version of dunce as in `ignore-files/Cargo.toml`
2024-08-16 22:39:34 +00:00
Félix Saparelli
2c1388e678
chore: Release 2024-06-30 21:02:32 +12:00
Félix Saparelli
9f1f2e9d04
chore: Release 2024-05-16 14:20:58 +12:00
Luca Barbato
2026c52abd
feat: Add git-describe support (#832) 2024-05-15 13:02:25 +00:00
Félix Saparelli
72f069a847
chore: Release 2024-04-30 20:41:43 +12:00
Félix Saparelli
592b712c95
chore: Release 2024-04-28 18:55:23 +12:00
Félix Saparelli
c9a3b9df00
chore: Release 2024-04-28 18:53:42 +12:00
Félix Saparelli
e63d37f601
chore: Release 2024-04-28 18:52:50 +12:00
Félix Saparelli
14e6294f5a
chore: Release 2024-04-28 18:51:48 +12:00
Félix Saparelli
234d606563
chore: Release 2024-04-28 18:50:18 +12:00
Félix Saparelli
77405c8ce1
chore: Release 2024-04-28 18:48:50 +12:00
Félix Saparelli
6c23afe839
feat: make it possible to watch non-recursively (#827)
Fixes #227
Fixes #174

docs(cli): be more precise in print-events advice to use `-v`
docs(cli): improve jaq error help
feat(cli): add `-W` for non-recursive watches
feat(cli): use non-blocking logging
feat(globset): hide `fmt::Debug` spew from ignore crate
feat(ignore-files): hide `fmt::Debug` spew from ignore crate
feat(lib): make it possible to watch non-recursively
fix(lib): inserting `WatchedPath`s directly should be possible
refactor(lib): move `WatchedPath` out of `fs` mod
2024-04-28 06:33:07 +00:00
Félix Saparelli
a63864c5f2
chore: Release 2024-04-21 01:18:24 +12:00
Félix Saparelli
ee815ba166
chore: Release 2024-04-21 01:06:46 +12:00
Félix Saparelli
d6138b9961
chore: Release 2024-04-21 01:04:18 +12:00
Félix Saparelli
d317540fd3
chore: Release 2024-04-21 01:00:28 +12:00
Félix Saparelli
9d91c51651
chore: Release 2024-04-21 00:56:27 +12:00
Félix Saparelli
96480cb588
chore: Release 2024-04-21 00:55:14 +12:00
Félix Saparelli
e1cef25d7f
Fix watchexec-events tests 2024-04-21 00:36:59 +12:00
Félix Saparelli
22b58a66ab
Remove tagged filterer 2024-04-21 00:32:01 +12:00
Félix Saparelli
4023bf7124
chore: Release 2024-04-21 00:21:04 +12:00
Félix Saparelli
8864811e79
Fix watchexec-events self-dependency 2024-04-21 00:19:11 +12:00
Félix Saparelli
8ad12b1f65
chore: Release 2024-04-21 00:13:30 +12:00
Félix Saparelli
dca13fed43
chore: Release 2024-04-21 00:12:21 +12:00
Félix Saparelli
af24252f21
Experimental filter programs (#571) 2024-04-20 10:06:53 +00:00
Félix Saparelli
b72248a38c
Update deps (#816) 2024-04-20 05:45:50 +00:00
Félix Saparelli
75b2c4b4ae
Adapt supervisor to process-wrap (#815) 2024-04-20 16:58:17 +12:00
dependabot[bot]
a50ce396cb
Bump mio from 0.8.10 to 0.8.11 (#796)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-06 13:01:52 +13:00
dependabot[bot]
8b39279423
Bump h2 from 0.3.22 to 0.3.24 (#769)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 04:39:42 +00:00
github-actions[bot]
d3949cc6e9
release: watchexec-cli v1.25.1 (#764)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-05 04:41:32 +00:00
github-actions[bot]
465ccfc597
release: watchexec-filterer-ignore v3.0.1 (#763)
Co-authored-by: github-actions <github-actions@github.com>
2024-01-05 15:48:04 +13:00
github-actions[bot]
6a2f637a60
release: ignore-files v2.1.0 (#762)
Co-authored-by: github-actions <github-actions@github.com>
2024-01-04 11:32:58 +00:00
Félix Saparelli
4f757de8df
Canonicalise paths for ignore discovery (#760) 2024-01-04 09:32:47 +00:00
Félix Saparelli
217f57f6a2
Update to async-priority-channel 0.2.0 (#761) 2024-01-04 22:13:08 +13:00
github-actions[bot]
682a9b4d21
release: watchexec-cli v1.25.0 (#754)
Co-authored-by: github-actions <github-actions@github.com>
2024-01-01 10:39:18 +00:00
github-actions[bot]
447b6fa963
release: watchexec-filterer-globset v3.0.0 (#752)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-01 09:10:43 +00:00
github-actions[bot]
3cbf277b2e
release: watchexec-filterer-tagged v2.0.0 (#753)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-01 09:09:24 +00:00
github-actions[bot]
48793008eb
release: watchexec-filterer-ignore v3.0.0 (#751)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-01 08:47:32 +00:00
github-actions[bot]
1ef2fcebf1
release: ignore-files v2.0.0 (#750)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-01 07:54:19 +00:00
github-actions[bot]
8523bd196c
release: project-origins v1.3.0 (#749)
Co-authored-by: github-actions <github-actions@github.com>
2024-01-01 06:07:03 +00:00
Victor Adossi ("vados")
cb1cfb6bf5
Optimise ignore file gathering (#663)
Co-authored-by: Félix Saparelli <felix@passcod.name>
2024-01-01 05:01:14 +00:00
thislooksfun
3ad0e1aa57
Respect applies_in scope when processing nested ignores (#746)
Previously, when importing multiple nested ignore files, some info from
the parent—notably the "root" path—would be inherited. This lead to some
problems with matching of "pseudo-absolute" rules (those with a leading
slash) in nested ignore files (see #745 for more details). To fix this,
we now fully isolate each path of the tree during the import process.
This leads to more accurate, though unfortunately slightly less
performant, rule matching. The only time a builder is reused now is if
two input files have the same `applies_in` value, in which case they are
merged together.

I have added tests to ensure correctness and prevent a regression. I
also was careful to make sure no previous tests broke in any way (all
changes to existing tests were made in isolation, and thus are not
affected by the logic changes). As far as I can tell, the only behavior
change is that now some previously-ignored rules will now be applied,
which could, in very rare configurations, lead to files being
unintentionally ignored. However, due to the aforementioned logic bug,
those files were all ignored by git already, so I suspect the number of
people actually caught off guard by this change to be extremely low,
likely zero.

Fixes #745.
2023-12-30 14:12:59 +13:00
Félix Saparelli
0a6811f1fb
Update cargo.lock (#738) 2023-12-19 22:34:29 +00:00
github-actions[bot]
e9cce54179
release: watchexec-cli v1.24.2 (#736)
Co-authored-by: github-actions <github-actions@github.com>
2023-12-19 13:10:59 +00:00
github-actions[bot]
6ecc5569e4
release: watchexec-supervisor v1.0.3 (#735)
Co-authored-by: github-actions <github-actions@github.com>
2023-12-19 11:31:34 +00:00
Félix Saparelli
b4a64a096a
Add eyra support as a feature (#728) 2023-12-13 14:08:03 +13:00