git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Elijah Newren <newren@gmail.com>
To: ALEPINS Etienne <Etienne.ALEPINS@thalesgroup.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: sparse-checkout --no-cone deprecation {TGO}
Date: Mon, 4 Jul 2022 11:51:17 -0700	[thread overview]
Message-ID: <CABPp-BEJoMcQSF4EyO0VJJVDY5CZtSEgzyK3_2vOMLSBv4HLeQ@mail.gmail.com> (raw)
In-Reply-To: <9817efb01cf644e19d53ad89712093fc@thalesgroup.com>

On Mon, Jul 4, 2022 at 10:04 AM ALEPINS Etienne
<Etienne.ALEPINS@thalesgroup.com> wrote:
>
> Classification: OPEN {TGO}
> Hi,
>
> Git 2.37.0 sparse-checkout documentation says the non-cone mode will be deprecated.

Could you point out where?  This is an error; it is deprecated, it
should not state that it "will be" deprecated.

> I think this is a bad idea: I don't see other means than the non-cone mode to only keep some of the files inside a directory. The cone mode allows to select/hide whole directories without giving control to select/hide specific files inside selected directories. I understand --no-cone mode may disable other features (e.g. sparse index), but that is ok with me.
> I have people in my team coming from SVN which offered the option to include only some files of a repo. Git submodule + sparse-checkout --no-cone is a near equivalent that should be kept available. My goal is that on disk, the submodule contains only some of its files.

From wikipedia:
"""
In several fields, especially computing, deprecation is the
discouragement of use of some terminology, feature, design, or
practice, typically because it has been superseded or is no longer
considered efficient or safe, without completely removing it or
prohibiting its use. Typically, deprecated materials are not
completely removed to ensure legacy compatibility or back up practice
in case new methods are not functional in an odd scenario.

It can also imply that a feature, design, or practice will be removed
or discontinued entirely in the future.[1]
"""

You seem to be assuming removal is planned and arguing against that,
but there is no such plan; the deprecation is effectively just
discouragement of use.  If you've read the "INTERNALS -- NON-CONE
PROBLEMS" section of the git-sparse-checkout manual, and have decided
you're willing to accept those issues, then by all means keep using
it.  Don't expect new features targetting it, but Stolee, Victoria,
and I (perhaps the three folks doing the most with sparse checkout
contributions to Git) have all individually stated an opinion on this
list that --no-cone mode should continue to exist and that we plan to
make sure it keeps working.

If you find someone somewhere claiming that non-cone mode is planned
to be removed, feel free to point them at this email.  I was the one
who created the patches to change the default to cone mode and put the
deprecation notice in the manual.

      reply	other threads:[~2022-07-04 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04 16:39 sparse-checkout --no-cone deprecation {TGO} ALEPINS Etienne
2022-07-04 18:51 ` Elijah Newren [this message]

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-BEJoMcQSF4EyO0VJJVDY5CZtSEgzyK3_2vOMLSBv4HLeQ@mail.gmail.com \
    --to=newren@gmail.com \
    --cc=Etienne.ALEPINS@thalesgroup.com \
    --cc=git@vger.kernel.org \
    /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).