From: Junio C Hamano Date: Tue, 13 Feb 2018 17:57:14 GMT Subject: Re: [PATCH v2] dir.c: ignore paths containing .git when invalidating untracked cache Message-ID: In-Reply-To: Duy Nguyen writes: > It's very tempting considering that the amount of changes is much > smaller. But I think we should go with my version. The hope is when a > _new_ call site appears, the author would think twice before passing > zero or one to the safe_path argument. Wouldn't it be a better API if the author of new callsite does not have to think twice and can instead rely on the called function untracked_cache_invalidate_path() to always do the right thing?