From: Junio C Hamano Date: Thu, 28 Sep 2006 04:40:50 GMT Subject: Re: [PATCH 2nd try] runstatus: do not recurse into subdirectories if not needed Message-ID: <7v64f861t9.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > This speeds up the case when you run git-status, having an untracked > subdirectory containing huge amounts of files. > > Signed-off-by: Johannes Schindelin > > --- > > On Thu, 28 Sep 2006, Johannes Schindelin wrote: > > Okay, so no more dir_is_empty(). Instead, read_directory_recursive() > gets a flag. With this flag, "check_only", it exits as soon as it > found valid entries, but does not add any. Way easier. Yeah, the logic is a lot easier to follow.