Re: update-index --assume-unchanged doesn't make things go fast
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jun 25, 2008, 21:35 UTC
- Message-ID
- <200806252335.05083.jnareb@gmail.com>
- In-Reply-To
- <32541b130806251253t3dcada10nbf94fee9e4aed9ec@mail.gmail.com>
On Wed, 25 Jun 2008, Avery Pennarun wrote:
Show 20 quoted lines
> On 6/25/08, Jakub Narebski <jnareb@gmail.com> wrote: > > > > Which git version do you use? Does it have the following configuration > > variable (also available as command option): > > > > status.showUntrackedFiles:: > > [...] > > Thanks, I didn't know about that one. Using that definitely makes > "git status" go much faster (pretty much instantaneous if I've also > used --assume-unchanged on everything). > > Now the catch is, if I want to implement the daemon I was talking > about earlier, I'd like to be able to notice untracked files (or > directories with untracked files) individually. Ideally, I guess the > best way would be to just keep a separate list of all existing files > that aren't in the index, and have git status look at that rather than > at the actual filesystem. > > Are there any suggestions for how best to do this?
You can try to take a look at how (third-party and Linux only) inotify extension for Mercurial works. AFAIK IIRC it uses some kind of daemon which watches for inotify notices and updates Mercorial's equivalent of index.
-- Jakub Narebski Poland