From: Junio C Hamano Date: Wed, 14 Feb 2018 08:00:14 GMT Subject: Re: [PATCH v2] dir.c: ignore paths containing .git when invalidating untracked cache Message-ID: In-Reply-To: On Tue, Feb 13, 2018 at 5:24 PM, Duy Nguyen wrote: > I am worried that always doing the right thing may carry performance > penalty (this is based purely on reading verify_path() code, no actual > benchmarking). For safety, you can always set safe_path to zero. But > if you do a lot of invalidation and something starts to slow down, > then you can consider setting safe_path to 1 (if it's actually safe to > do so). Fair enough. Thanks for articulating the reasoning.