From: Ping Yin Date: Sun, 04 May 2008 07:10:05 GMT Subject: Re: [PATCH 3/4] Fix diff regression for submodules not checked out Message-ID: <46dff0320805040010s2dce0f7cr82548088e08ff54a@mail.gmail.com> In-Reply-To: <7vej8ir2ik.fsf@gitster.siamese.dyndns.org> On Sun, May 4, 2008 at 2:45 PM, Junio C Hamano wrote: > Junio C Hamano writes: > > > The second case is "not checked out -- treat me as unmodified", and the > > third case is "the user does not want the submodule there", and the latter > > is still reported as "removed". That is exactly what your patch does. > > Having looked at the code a bit more, I do not think we need the > three-kind distinction for this part. > > The attached patch would be both sufficient and cleaner. The real change > is a single-liner, and everything else is additional comment ;-) I'd > follow it up with s/check_work_tree_entity/check_removed/ for > clarification. > Fine, it's cleaner. -- Ping Yin