watchexec/lib/src
Félix Saparelli 72100217e8 Allow */foo filters to match foo (compat)
This is buggy behaviour that exists in <=1.17, and this patch restores it*

Per gitignore rules, this glob:

    */somefile

Will match:

    foo/somefile
    bar/somefile

But not:

    somefile

However, so far we’ve accepted this. As this is a breaking change, this patch
introduces a hack which lets us accept this behaviour, but clearly marks it as
a compatibility exception. In 2.0, this will be gone.

Fixes #258

* It only restores it on unices, because the behaviour cannot be restored in
  any reasonable manner on Windows. Ah well. It's not for long anyway.
2022-03-07 20:33:29 +13:00
..
action Change on_error to let the handler raise a CriticalError 2022-02-07 17:15:27 +13:00
command Use a tokio::watch in the supervisor to avoid races 2022-01-31 00:00:51 +13:00
error Carry help through elevated errors properly 2022-02-12 20:05:19 +13:00
filter Allow */foo filters to match foo (compat) 2022-03-07 20:33:29 +13:00
ignore Hide io::errors when "waiting on process group" 2022-01-27 10:48:24 +13:00
signal Almost forgot windows... 2022-01-16 20:17:32 +13:00
action.rs Split up action in mods 2022-01-29 02:39:06 +13:00
command.rs Add process supervisor to watch command to completion 2021-09-03 05:22:15 +12:00
config.rs Change on_error to let the handler raise a CriticalError 2022-02-07 17:15:27 +13:00
error.rs Add context to io errors 2022-01-16 19:46:52 +13:00
event.rs Re-export notify event types 2021-12-07 00:50:33 +13:00
filter.rs Remove unused check_glob utility 2022-01-26 01:58:01 +13:00
fs.rs Split known create errors to get proper help text 2022-02-12 19:49:02 +13:00
handler.rs Add HandlerLock wrapper 2022-01-29 02:08:34 +13:00
ignore.rs Reorganise the ignore mod for brevity 2022-01-15 15:12:32 +13:00
lib.rs Change on_error to let the handler raise a CriticalError 2022-02-07 17:15:27 +13:00
paths.rs Deduplicate paths in summarise_events_to_env 2022-01-31 02:14:28 +13:00
project.rs Add support for Pijul and Subversion 2022-01-16 16:13:05 +13:00
signal.rs Handle signalling to sub process on non-unix 2021-10-16 01:21:52 +13:00
swaplock.rs Move swaplock to the root 2022-01-28 23:32:54 +13:00
watchexec.rs Carry help through elevated errors properly 2022-02-12 20:05:19 +13:00