3 ms·
At first i thought i don't understand what your little rust code is doing, than i got it. Its a watchman wrapper written in rust. But in that article you link
by sigi45 8y ago
At first i thought i don't understand what your little rust code is doing, than i got it.
Its a watchman wrapper written in rust.
But in that article you linked, there is mentioned that git ships with a sample watchman hook already?!
- jgavris 8y agoIt is not enabled by default yet, since it depends on an external tool to provide repo file update events. Git has one bundled that uses Facebook's watchman (with homebrew if you've installed it like so), but you have to configure each repo (or globally) to enable it. I was just curious how much faster a Rust implementation could be over a Perl script, and wanted to learn a bit of Rust.
- Phrodo_00 8y agoI wonder how much faster it would be to use the OS' inotify equivalent (if Linux, inotify itself) directly from rust rather than using an external tool.