Re: [PATCH 3/3] sparse checkout: do not eagerly decide the fate for whole directory
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 9, 2011, 22:22 UTC
- Message-ID
- <7vei47o6oj.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1304955781-13566-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 15 quoted lines
> Sparse-setting code follows closely how files are excluded in > read_directory(), every entry (including directories) are fed to > excluded_from_list() to decide if the entry is suitable. Directories > are treated no different than files. If a directory is matched (or > not), the whole directory is considered matched (or not) and the > process moves on. > > This generally works as long as there are no patterns to exclude parts > of the directory. In case of sparse checkout code, the following patterns > > t > !t/t0000-basic.sh > > will produce a worktree with full directory "t" even if t0000-basic.sh > is requested to stay out.
That roughly corresponds to having
!t
t/t0000-basic.shin gitignore mechanism, right? Generally t/ is not to be excluded, but only t0000-basic.sh should be. Sounds like a right thing to do.
Show 5 quoted lines
> Noticed-by: <skillzero@gmail.com> > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> > --- > Fix some comments as Thiago suggested. 1/3 of this series should be > dropped apparently.
I am not quite sure what to do with this patch though.
You marked this as 3/3 without saying anything about where 1 and 2 are (or if they even exist). You hint there is a 1 that should be dropped here.
Is this a re-rolled round, and if so where are the previous ones? Could you make things easier to find (just saying something like [PATCH v2 3/3] in the Subject: is good enough) next time?