Comments (9)
In the meantime, git-check-ignore allows deferring this logic togit
itself: fswatch . | while read file; do git check-ignore -q $file || echo $file; done
from fswatch.
Hi @bengillies,
In fact, this is an issue which has already been requested. I leave it open for reference and hope I'll be able to integrate it quite soon. The only catch I have (that I have not investigated yet) is a convenient way to implement the **
wildcard in patterns, since AFAIK functions like glob
or fnmatch
do not recognize it.
If someone has got an idea about this, let's brainstorm, since end of the year is quite a busy time.
Cheers,
-- Enrico
from fswatch.
Thanks for replying so quickly. I'm afraid I'm not much of a C++ person so probably not much help.
Question though: does it really need to support **
immediately?
from fswatch.
You're welcome.
Well, it certainly needs not, although I'd like to avoid confusing the users. git
had the same problems some time ago: **
was initially implemented only on certain systems, leading users to quite a good deal of confusion.
I want to have a look at git sources to check what they've done and then decide what I'll do. I'm just short of time.
I'll then consider omitting implementing **
and see how it goes.
Cheers,
-- Enrico
from fswatch.
@emcrisostomo any updates on this?
from fswatch.
globstar is supported by default on Bash 4
from fswatch.
Hi @ricardobeat, I'm afraid this issue hasn't been worked on yet.
from fswatch.
+1
from fswatch.
Being able to exclude files is important so that fswatch
can exert a lesser load on the system, especially when the monitor uses limited resources such as file descriptors. Trimming an otherwise huge file hierarchy is a feature that is definitely required. Maintaining the current implementation (a fswatch
-specific syntax) is OK to me.
Having fswatch
understand other exclude file types may be nice, but it's not only essential: the output can be filtered, how a user exactly wants. Furthermore, as @ricardobeat pointed out, in the case of git
it's very easy to check a path against the ignore patterns.
I'm closing this issue and I'll probably add an example using git check-ignore
to the documentation.
from fswatch.
Related Issues (20)
- broken exclude on macos? HOT 1
- Configuration header leaked into public interface in v. 1.17.0 HOT 8
- How to get the PDF documentation HOT 3
- Universal (Arm + x86) library build for MacOS on M1 HOT 1
- Ask for help HOT 1
- import error in silicon mac
- Additional waiting period after --one-event
- Make fails on Solaris 11.4 cbe with gcc-10 or gcc-11
- Trailing slash for directories HOT 1
- CMake package config file is not installed
- fswatch fails to build on windows 11 using cygwin
- Installation for windows missing
- libfswatch README copyright looks stale
- Help configuring fswatch to act only on full file being written by SFTP clients HOT 1
- fswatch command fires multiple events for a single move operation HOT 4
- Which event type should I look for if I am watching a Google Drive directory for new files?
- NetBSD support
- Is there any way to get previous filename for Rename event?
- Symlink question: Is fswatch suppose to notify of linked file changes HOT 1
- execute cmd for single filetype
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fswatch.