Re: inotify to minimize stat() calls
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 30, 2013, 00:27 UTC
- Message-ID
- <CACsJy8Bzd+K39MtiF3nWRbFfBo+kjAUmm-qLgpzeZZtSSxnqWg@mail.gmail.com>
- In-Reply-To
- <CAKXa9=r2A7UeBV2s2H3wVGdPkS1zZ9huNJhtvTC-p0S5Ed12xA@mail.gmail.com>
On Tue, Apr 30, 2013 at 1:05 AM, Robert Zeh <robert.allan.zeh@gmail.com> wrote:
> The call to lstat is only there for testing and should not be in there for > the final version. Is there an easy way to only enable it for tests?
The usual trick is invent a new GIT_ environment variable. Then check it and do something different. Then you can set the env in tests only. -- Duy