git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* sparse-checkout --no-cone deprecation {TGO}
@ 2022-07-04 16:39 ALEPINS Etienne
  2022-07-04 18:51 ` Elijah Newren
  0 siblings, 1 reply; 2+ messages in thread
From: ALEPINS Etienne @ 2022-07-04 16:39 UTC (permalink / raw)
  To: git@vger.kernel.org

Classification: OPEN {TGO}
Hi,

Git 2.37.0 sparse-checkout documentation says the non-cone mode 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.

Thanks,
Etienne

________________________________

AVIS IMPORTANT : Ce courriel est strictement réservé à l'usage de la (des) personne(s) à qui il est adressé. Ce courriel peut contenir de l'information confidentielle. Aussi, toute divulgation, distribution, copie, ou autre utilisation de ce courriel par une autre personne que son destinataire est strictement prohibée. Si vous n’êtes pas le destinataire ou un employé ou un agent responsable de remettre ce message à son destinataire, veuillez s'il vous plaît communiquer immédiatement avec l'expéditeur et détruire ce courriel ainsi que toute copie que vous pourriez détenir. ATTENTION : Les courriels ne sont pas sécuritaires s’ils ne sont pas cryptés de façon appropriée. Il est possible que des courriels soient interceptés ou affectés par un virus. Bien qu’une surveillance antivirus soit effectuée à l’égard de tous nos courriels, nous n’acceptons aucune responsabilité pour des virus ou tout autre élément de dommage pouvant être introduits avec ce message.

WARNING : This message is intended only for the named recipients. This message may contain information that is confidential. Any dissemination, copying, or use of this message or its contents by anyone other than the named recipient is strictly prohibited. If you are not a named recipient or an employee or agent responsible for delivering this message to a named recipient, please notify the sender immediately, and immediately destroy this message and any copies you may have. WARNING: Email may not be secure unless properly encrypted. It is possible for e-mails to be intercepted or affected by viruses. While we maintain virus checks on all e-mails, we accept no liability for viruses or other material introduced with this message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sparse-checkout --no-cone deprecation {TGO}
  2022-07-04 16:39 sparse-checkout --no-cone deprecation {TGO} ALEPINS Etienne
@ 2022-07-04 18:51 ` Elijah Newren
  0 siblings, 0 replies; 2+ messages in thread
From: Elijah Newren @ 2022-07-04 18:51 UTC (permalink / raw)
  To: ALEPINS Etienne; +Cc: git@vger.kernel.org

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-04 18:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-04 16:39 sparse-checkout --no-cone deprecation {TGO} ALEPINS Etienne
2022-07-04 18:51 ` Elijah Newren

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