Re: [PATCH] bash: offer to show (un)staged changes
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Jan 19, 2009, 19:12 UTC
- Message-ID
- <46a038f90901191112p6626c670md219191d6bc46725@mail.gmail.com>
- In-Reply-To
- <200901191306.49979.bss@iguanasuicide.net>
On Mon, Jan 19, 2009 at 2:06 PM, Boyd Stephen Smith Jr. <bss@iguanasuicide.net> wrote:
> Really? Why have inotify then? I thought its only purpose is "to keep track > of the fs". If it is never a net win, why even use/provide it?
Lots of programs want to monitor _one file_ or _one directory_. Cron daemons monitor /etc/cron.*/ , incron monitors /etc/incron.d/ , programs that watch mailspool directories can be made more efficient this way too.
You might find your system today has perhaps a dozen inotify watches. Judiciously used, it's great.
cheers
m
-- martin.langhoff@gmail.com martin@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff