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

Re: [PATCH] sparse-checkout: avoid staging deletions of all files

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 4, 2020, 17:08 UTC
Message-ID
<xmqqzh9ipxli.fsf@gitster.c.googlers.com>
In-Reply-To
<6e5970f6-9b9b-19ba-1035-f4f53d9ac030@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
Show 12 quoted lines
> So maybe be purposeful and include the -a option and expect only the
> .git dir (along with . and ..)?
>
> Something like:
>
> 	cat >expect <<-\EOF &&
> 	.
> 	..
> 	.git
> 	EOF
> 	ls -a clone_no_checkout >actual &&
> 	test_cmp expect actual &&

Is it guaranteed that everybody has dot and dot-dot in their directory?

  https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html
has this to describe the "-A" option:
    Write out all directory entries, including those whose names
    begin with a <period> ( '.' ) but excluding the entries dot and
    dot-dot (if they exist).
whose "if they exist" scares me ;-)
Previous: Derrick StoleeNext: Junio C Hamano
Message 5 of 9 in “sparse-checkout: avoid staging deletions of all files”
  1. sparse-checkout: avoid staging deletions of all filesElijah Newren via GitGitGadget, Jun 4, 2020
  2. Derrick StoleeJun 4, 2020
  3. Elijah NewrenJun 4, 2020
  4. Derrick StoleeJun 4, 2020
  5. Junio C HamanoJun 4, 2020
  6. Junio C HamanoJun 4, 2020
  7. Junio C HamanoJun 4, 2020
  8. Junio C HamanoJun 4, 2020
  9. sparse-checkout: avoid staging deletions of all filesElijah Newren via GitGitGadget, Jun 5, 2020

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.