git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Elijah Newren <newren@gmail.com>,
	Derrick Stolee <derrickstolee@github.com>
Subject: Re: en/present-despite-skipped (Re: What's cooking in git.git (Feb 2022, #05; Thu, 17))
Date: Fri, 25 Feb 2022 08:43:21 -0800	[thread overview]
Message-ID: <YhkHKTY9MlR9gUkI@google.com> (raw)
In-Reply-To: <xmqqo82xv0cj.fsf@gitster.g>

Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
>> Jonathan Nieder wrote:
>>> Junio C Hamano wrote:

>>>>  Will merge to 'master'.
>>>>  cf. <20220204081336.3194538-1-newren@gmail.com>
>>>>  source: <pull.1114.v2.git.1642175983.gitgitgadget@gmail.com>
>>>
>>> I'd recommend holding off on merging to 'master' for now, until we
>>> figure out what to do about
>>> https://lore.kernel.org/git/YhBCsg2DCEd9FXjE@google.com/. Hopefully that
>>> won't take long.
>>
>> Since as discussed there this isn't a regression for existing users of
>> git 'master', I see no reason to hold off on merging to 'master'.
>
> I think I've read on what people said on this topic for the past few
> days while I was away.
>
> I do not quite follow the above, though.
>
> Does the logic go like this?
>
>  - Earlier you worried that VFS for Git and similar that have been
>    working happily with vanilla Git would break with this series;
>
>  - It turns out that VFS for Git comes with its own version of Git
>    that does not have this series;
>
>  - Hence we can do whatever we like to vanilla Git, and it won't
>    immediately hurt.

Yes, exactly.

> The config knob to tell the sparse logic that it is OK if lstat()
> tells us that there appears files that ought to be missing from the
> filesystem due to sparse settings would be needed and that is why
> you sent an updated proposal patch in separate thread, right?
>
> Shouldn't we iron out the details of that knob and release the topic
> with that knob at the same time?

That's fine with me.  I just figured that since this series is already
useful without that knob and the only known affected users are using
"next" anyway, there's no need to delay unaffected users getting the
rest of the improvements while we iron that out.

In practice, fewer people than I'd like run "master" (alas) and the
patch adding the knob looks close to landing anyway, so the difference
is likely mostly moot.

>                                   If Microsoft folks already have an
> existing knob to tweak the behaviour of sparse checkout to work better
> in vfs environment where lstat() lies, and if the necessary adjustment
> is wider than just the issue the sparse.expectFilesOutsideOfPatterns
> solves, I wonder if we should take the approach to align with their
> forked version of Git by matching the name and the behaviour of the
> knob somehow.

This is a good point.

I'd expect sparse.expectFilesOutsideOfPatterns to be useful in other
cases that are not a VFS setup, such as having some automation that is
the only writer to a perfectly normal ext4 backed working tree and
uses sparse checkout to tell which files Git should pay attention to
(similar to the old --assume-unchanged use cases but a little easier
to set up).  So I think it would okay for this to exist and be implied
by core.virtualFileystem instead of being solely keyed by that setting
(or in other words I don't think we're painting ourselves into a bad
corner, config naming wise).

Thanks,
Jonathan

  reply	other threads:[~2022-02-25 16:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-18  1:13 What's cooking in git.git (Feb 2022, #05; Thu, 17) Junio C Hamano
2022-02-18  2:49 ` gc/recursive-fetch-with-unused-submodules (was Re: What's cooking in git.git (Feb 2022, #05; Thu, 17)) Glen Choo
2022-02-18 16:51   ` Junio C Hamano
2022-02-18  3:28 ` What's cooking in git.git (Feb 2022, #05; Thu, 17) Elijah Newren
2022-02-18 16:51   ` Junio C Hamano
2022-02-18  5:19 ` ds/core-untrac[k]ed-cache-config (Was: Re: What's cooking in git.git (Feb 2022, #05; Thu, 17)) Elijah Newren
2022-02-18 16:50   ` ds/core-untrac[k]ed-cache-config Junio C Hamano
2022-02-19  1:53 ` en/present-despite-skipped (Re: What's cooking in git.git (Feb 2022, #05; Thu, 17)) Jonathan Nieder
2022-02-22 23:52   ` Jonathan Nieder
2022-02-23 19:39     ` Junio C Hamano
2022-02-25 16:43       ` Jonathan Nieder [this message]
2022-02-21 11:14 ` pw/single-key-interactive (was " Phillip Wood

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=YhkHKTY9MlR9gUkI@google.com \
    --to=jrnieder@gmail.com \
    --cc=derrickstolee@github.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=newren@gmail.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).