On Wed, Mar 20, 2013 at 10:45:22PM +0530, Ramkumar Ramachandra wrote: > Fredrik Gustafsson wrote: > > When entering a git working dir, optionally run a forked process that > > stat all files in the whole workdir and therefore loads stat information > > to RAM which will speedup things like git status and so on. > > This is misleading. You just execute the equivalent of `git status` > everytime I request a prompt inside a git working directory. And this > is if I'm using __git_ps1() to augment my prompt, which I'm not- I use > ZSH's vcs_info, which is arguably better. Also, you forgot to say how > to turn on the feature. The invokation place is quesionable (Junio also had some thoughts about that). I don't find vcs_info in the contrib/completition/. Do you have any suggestion about where the best way is to inwoke this kind of thing? I added documentation about how to turn the feature on, in the same way the other features is documented. (Is there an other way/better way I should do this?) > > That said, this feature is extremely gross; it thrashes my filesystem > and hard drive. Modern software is written to minimize IO, not > maximize it! I'm completely against the inclusion of this patch. It's extremly gross. I don't like this, _but_ it does speed up my work. I'm unsure if it should be included in git though (hence the RFC-tag). > > However, I would not mind a feature that runs `git status` the very > first time I enter a git working directory: when I enter my clone of > linux.git, it takes my first `git status` invocation a good ten > seconds to complete, and we can fix this pretty easily. That's the problem I try to solve. However "the first time" is irrelevant. We will run git status a bit before we need it. If we enter linux.git, do other work (in an other project) for an hour and go back to linux.git our cache will probably be empty. We will need to run this more than "the first time". But still, we don't want it to run too often. (Which is does now). -- Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: iveqy@xxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html