Am 13.03.2013 02:03, schrieb Duy Nguyen:
> On Wed, Mar 13, 2013 at 6:21 AM, Karsten Blees <karsten.bl...@gmail.com>
>> Hmmm...I don't see how filesystem changes since last invocation can solve
>> the problem, or am I missing something? I think what you mean to say is that
>> the daemon should keep track of the filesystem *state* of the working copy,
>> or alternatively the deltas/changes to some known state (such as .git/index)?
> I think git process can keep track of filesystem state (and save it
> down if necessary).
Ah, saving the state was the missing bits, thanks.
However, AFAIK inotify doesn't work recursively, so the daemon would at least
have to track the directory structure to be able to register / unregister
inotify handlers as directories come and go.
>> Consider 'git status; make; make clean; git status'...that's a *lot* of
>> changes to process for nothing (potentially slowing down make).
> Yeah. In my opinion, the daemon should realize that at some point
> accumulated changes are too much that it's not worth collecting
> anymore, and drop them all. Git will do it the normal/slow way. After
> that the daemon picks up again. We only optimize for the case when
> little changes are made in filesystem.
That sounds reasonable...
>> Then there's the issue of stale data in the cache. Modifying porcelain
>> commands that use 'git status --porcelain' to compile their changesets will
>> want 100% exact data. I'm not saying its not doable, but adding another
>> platform specific, caching daemon to the tool chain doesn't exactly simplify
>> But perhaps I'm too pessimistic (or just stigmatized by inherently slow and
>> out-of-date TGitCache/TSvnCache on Windows :-)
> Thanks. I didn't know about TGitCache. Will dig it up. Maybe we can
> learn something from it (or realize the daemon approach is futile
> after all).
TGitCache/TSvnCache are the background processes in TortoiseGit/TortoiseSvn
that keep track of filesystem state to display icon overlays in Windows
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html