From: Junio C Hamano Date: Thu, 07 Jan 2010 18:01:28 GMT Subject: Re: [PATCH 2/3] ls-files: support -o --max-depth (more of a hack as fill_directory should support this) Message-ID: <7vljg94ww7.fsf@alter.siamese.dyndns.org> In-Reply-To: <1262884076-12293-3-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- Subject: Re: [PATCH 2/3] ls-files: support -o --max-depth (more of a hack as fill_directory should support this) Perhaps you would want to look at how builtin_grep()'s walker and the walker in dir.c can be consolidated? The former has support for max_depth.