git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.sh

in 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?

Previous: Nguyen Thai Ngoc Duy
Message 18 of 18 in “t3700: note a .gitignore matching fault”
  1. 1/3 t3700: note a .gitignore matching faultNguyễn Thái Ngọc Duy, May 2, 2011
  2. 2/3 t1011: fix sparse-checkout initialization and add new fileNguyễn Thái Ngọc Duy, May 2, 2011
  3. 3/3 sparse checkout: do not eagerly decide the fate for whole directoryNguyễn Thái Ngọc Duy, May 2, 2011
  4. Thiago FarinaMay 3, 2011
  5. Nguyen Thai Ngoc DuyMay 3, 2011
  6. Junio C HamanoMay 10, 2011
  7. Nguyen Thai Ngoc DuyMay 11, 2011
  8. 1/3 t3700: note a .gitignore matching faultNguyễn Thái Ngọc Duy, May 2, 2011
  9. Johannes SixtMay 2, 2011
  10. Nguyen Thai Ngoc DuyMay 2, 2011
  11. Junio C HamanoMay 3, 2011
  12. Nguyen Thai Ngoc DuyMay 3, 2011
  13. Junio C HamanoMay 3, 2011
  14. Nguyen Thai Ngoc DuyMay 4, 2011
  15. Nguyen Thai Ngoc DuyMay 4, 2011
  16. Johannes SixtMay 4, 2011
  17. Nguyen Thai Ngoc DuyMay 4, 2011
  18. Junio C HamanoMay 9, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.