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

Re: [PATCH v2 0/5] Sparse Index: Integrate with 'git add'

From
Elijah Newren <newren@gmail.com>
Date
Jul 30, 2021, 12:52 UTC
Message-ID
<CABPp-BE58FqpD3u2ECZUzMJ=3oNBYHshkKzf+sZWkaeHG8SxWA@mail.gmail.com>
In-Reply-To
<2a24488f-d0c8-d1f4-7115-36ac0745658d@gmail.com>
On Thu, Jul 29, 2021 at 8:49 AM Derrick Stolee <stolee@gmail.com> wrote:
Show 7 quoted lines
>
> On 7/28/2021 10:57 PM, Elijah Newren wrote:
> > On Wed, Jul 28, 2021 at 8:03 PM Derrick Stolee <stolee@gmail.com> wrote:
> >>
> >> On 7/28/2021 7:13 PM, Elijah Newren wrote:
> >>> On Mon, Jul 26, 2021 at 9:18 AM Derrick Stolee via GitGitGadget
> >>> <gitgitgadget@gmail.com> wrote:
...
Show 22 quoted lines
> >> I agree about ignored files, and that is true whether or not they
> >> are in the sparse cone.
> >
> > Yes, and...
> >
> >>> I think the same logic holds for adding untracked files
> >>> outside the sparsity cone.
> >
> > In my opinion, "outside the sparsity cone" is another form of "being
> > ignored", and in my mind should be treated similarly -- it should
> > generally require an override to add such files.  (Case (c) possibly
> > being an exception, though maybe even it shouldn't be.)
>
> I don't hold that same interpretation. I think of it instead as
> "hidden" files, but they still matter. I also think that advising
> one to adjust their sparsity patterns might be dangerous because
> not all users know the ramifications of doing that. They might
> accidentally download an enormous amount of data to correct a
> single file.
>
> Having an override seems like the best option, and we can hopefully
> make it consistent across all the cases and commands.

I think we might be arguing two sides of the same coin at this point. We don't have a more general term for special in a way that shouldn't be included by default with git-add, and I couldn't think of a good synonym, so I used the words "another form of being ignored" (not trying to imply that it was the same as .gitignored, but just that the two were special in a very similar way) while you tried to highlight the differences using "hidden" but agreed they were similar in that they should have an override.

Fair point on adjusting sparsity patterns and the data download it can cause.
Show 16 quoted lines
> ...
>
> > Trying to get out of a corner we paint ourselves into with
> > sparse-checkout would be massively harder, which is why I keep harping
> > on this kind of thing.  I'm very concerned it's happening even despite
> > my numerous comments and worries about it.
> ...
> > I'm totally fine with such changes not being part of this series.  I
> > just don't want a test_expect_success that checks for behavior that I
> > consider buggy unless it comes with a disclaimer that it's checking
> > for existing rather than expected behavior.
>
> I understand your perspective. I'll send a v3 soon that adds a
> comment on top of the entire test signalling the things we talked
> about here: this is a documentation of behavior, not an endorsement,
> and we should probably change it because users can get confused.
Thanks for doing that.  :-)
Previous: Derrick StoleeNext: Derrick Stolee via GitGitGadget
Message 30 of 38 in “Sparse Index: Integrate with 'git add'”
  1. 0/5 Sparse Index: Integrate with 'git add'Derrick Stolee via GitGitGadget, Jul 21, 2021
  2. 1/5 t1092: test merge conflicts outside coneDerrick Stolee via GitGitGadget, Jul 21, 2021
  3. Elijah NewrenJul 23, 2021
  4. Eric SunshineJul 23, 2021
  5. Elijah NewrenJul 23, 2021
  6. Derrick StoleeJul 26, 2021
  7. 2/5 add: allow operating on a sparse-only indexDerrick Stolee via GitGitGadget, Jul 21, 2021
  8. Junio C HamanoJul 21, 2021
  9. Derrick StoleeJul 21, 2021
  10. Elijah NewrenJul 23, 2021
  11. Derrick StoleeJul 26, 2021
  12. Derrick StoleeJul 26, 2021
  13. 3/5 pathspec: stop calling ensure_full_indexDerrick Stolee via GitGitGadget, Jul 21, 2021
  14. Elijah NewrenJul 23, 2021
  15. 4/5 t1092: 'git add --refresh' difference with sparse-indexDerrick Stolee via GitGitGadget, Jul 21, 2021
  16. 5/5 add: ignore outside the sparse-checkout in refresh()Derrick Stolee via GitGitGadget, Jul 21, 2021
  17. Elijah NewrenJul 23, 2021
  18. Elijah NewrenJul 23, 2021
  19. Elijah NewrenJul 23, 2021
  20. 0/5 Sparse Index: Integrate with 'git add'Derrick Stolee via GitGitGadget, Jul 26, 2021
  21. 1/5 t1092: test merge conflicts outside coneDerrick Stolee via GitGitGadget, Jul 26, 2021
  22. 2/5 add: allow operating on a sparse-only indexDerrick Stolee via GitGitGadget, Jul 26, 2021
  23. 4/5 add: ignore outside the sparse-checkout in refresh()Derrick Stolee via GitGitGadget, Jul 26, 2021
  24. 3/5 pathspec: stop calling ensure_full_indexDerrick Stolee via GitGitGadget, Jul 26, 2021
  25. 5/5 add: remove ensure_full_index() with --renormalizeDerrick Stolee via GitGitGadget, Jul 26, 2021
  26. Elijah NewrenJul 28, 2021
  27. Derrick StoleeJul 29, 2021
  28. Elijah NewrenJul 29, 2021
  29. Derrick StoleeJul 29, 2021
  30. Elijah NewrenJul 30, 2021
  31. 0/5 Sparse Index: Integrate with 'git add'Derrick Stolee via GitGitGadget, Jul 29, 2021
  32. 2/5 add: allow operating on a sparse-only indexDerrick Stolee via GitGitGadget, Jul 29, 2021
  33. 1/5 t1092: test merge conflicts outside coneDerrick Stolee via GitGitGadget, Jul 29, 2021
  34. 4/5 add: ignore outside the sparse-checkout in refresh()Derrick Stolee via GitGitGadget, Jul 29, 2021
  35. 3/5 pathspec: stop calling ensure_full_indexDerrick Stolee via GitGitGadget, Jul 29, 2021
  36. 5/5 add: remove ensure_full_index() with --renormalizeDerrick Stolee via GitGitGadget, Jul 29, 2021
  37. Elijah NewrenJul 29, 2021
  38. Junio C HamanoJul 29, 2021

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.