git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Elijah Newren <newren@gmail.com>
To: Derrick Stolee <stolee@gmail.com>
Cc: Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>,
	Git Mailing List <git@vger.kernel.org>,
	Junio C Hamano <gitster@pobox.com>,
	Matheus Tavares Bernardino <matheus.bernardino@usp.br>,
	Eric Sunshine <sunshine@sunshineco.com>,
	Derrick Stolee <derrickstolee@github.com>
Subject: Re: [PATCH v2 0/5] Sparse Index: Integrate with 'git add'
Date: Fri, 30 Jul 2021 06:52:35 -0600	[thread overview]
Message-ID: <CABPp-BE58FqpD3u2ECZUzMJ=3oNBYHshkKzf+sZWkaeHG8SxWA@mail.gmail.com> (raw)
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:
>
> 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:
...
> >> 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.

> ...
>
> > 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.  :-)

  reply	other threads:[~2021-07-30 12:52 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 21:06 [PATCH 0/5] Sparse Index: Integrate with 'git add' Derrick Stolee via GitGitGadget
2021-07-21 21:06 ` [PATCH 1/5] t1092: test merge conflicts outside cone Derrick Stolee via GitGitGadget
2021-07-23 17:34   ` Elijah Newren
2021-07-23 17:44     ` Eric Sunshine
2021-07-23 17:47       ` Elijah Newren
2021-07-26 14:10     ` Derrick Stolee
2021-07-21 21:06 ` [PATCH 2/5] add: allow operating on a sparse-only index Derrick Stolee via GitGitGadget
2021-07-21 22:19   ` Junio C Hamano
2021-07-21 22:50     ` Derrick Stolee
2021-07-23 17:45   ` Elijah Newren
2021-07-26 13:11     ` Derrick Stolee
2021-07-26 13:33     ` Derrick Stolee
2021-07-21 21:06 ` [PATCH 3/5] pathspec: stop calling ensure_full_index Derrick Stolee via GitGitGadget
2021-07-23 18:17   ` Elijah Newren
2021-07-21 21:06 ` [PATCH 4/5] t1092: 'git add --refresh' difference with sparse-index Derrick Stolee via GitGitGadget
2021-07-21 21:06 ` [PATCH 5/5] add: ignore outside the sparse-checkout in refresh() Derrick Stolee via GitGitGadget
2021-07-23 19:46   ` Elijah Newren
2021-07-23 12:51 ` [PATCH 0/5] Sparse Index: Integrate with 'git add' Elijah Newren
2021-07-23 20:10   ` Elijah Newren
2021-07-26 15:18 ` [PATCH v2 " Derrick Stolee via GitGitGadget
2021-07-26 15:18   ` [PATCH v2 1/5] t1092: test merge conflicts outside cone Derrick Stolee via GitGitGadget
2021-07-26 15:18   ` [PATCH v2 2/5] add: allow operating on a sparse-only index Derrick Stolee via GitGitGadget
2021-07-26 15:18   ` [PATCH v2 3/5] pathspec: stop calling ensure_full_index Derrick Stolee via GitGitGadget
2021-07-26 15:18   ` [PATCH v2 4/5] add: ignore outside the sparse-checkout in refresh() Derrick Stolee via GitGitGadget
2021-07-26 15:18   ` [PATCH v2 5/5] add: remove ensure_full_index() with --renormalize Derrick Stolee via GitGitGadget
2021-07-28 23:13   ` [PATCH v2 0/5] Sparse Index: Integrate with 'git add' Elijah Newren
2021-07-29  2:03     ` Derrick Stolee
2021-07-29  2:57       ` Elijah Newren
2021-07-29 14:49         ` Derrick Stolee
2021-07-30 12:52           ` Elijah Newren [this message]
2021-07-29 14:52   ` [PATCH v3 " Derrick Stolee via GitGitGadget
2021-07-29 14:52     ` [PATCH v3 1/5] t1092: test merge conflicts outside cone Derrick Stolee via GitGitGadget
2021-07-29 14:52     ` [PATCH v3 2/5] add: allow operating on a sparse-only index Derrick Stolee via GitGitGadget
2021-07-29 14:52     ` [PATCH v3 3/5] pathspec: stop calling ensure_full_index Derrick Stolee via GitGitGadget
2021-07-29 14:52     ` [PATCH v3 4/5] add: ignore outside the sparse-checkout in refresh() Derrick Stolee via GitGitGadget
2021-07-29 14:52     ` [PATCH v3 5/5] add: remove ensure_full_index() with --renormalize Derrick Stolee via GitGitGadget
2021-07-29 14:58     ` [PATCH v3 0/5] Sparse Index: Integrate with 'git add' Elijah Newren
2021-07-29 23:00     ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABPp-BE58FqpD3u2ECZUzMJ=3oNBYHshkKzf+sZWkaeHG8SxWA@mail.gmail.com' \
    --to=newren@gmail.com \
    --cc=derrickstolee@github.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=gitster@pobox.com \
    --cc=matheus.bernardino@usp.br \
    --cc=stolee@gmail.com \
    --cc=sunshine@sunshineco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).