git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Jonathan Tan <jonathantanmy@google.com>
Cc: Stefan Beller <sbeller@google.com>,
	Ciro Santilli <ciro.santilli@gmail.com>,
	Matthew DeVore <matvore@google.com>, git <git@vger.kernel.org>
Subject: Re: Is it possible to git clone --filter= without any objects?
Date: Tue, 11 Sep 2018 10:46:57 -0700	[thread overview]
Message-ID: <xmqqo9d4orji.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CAGf8dgKLz14ijnXwV0Y=M48Rij-scA19E_uXk3pBc0T02oE_0Q@mail.gmail.com> (Jonathan Tan's message of "Tue, 11 Sep 2018 10:19:03 -0700")

Jonathan Tan <jonathantanmy@google.com> writes:

> By "without any objects" in your email subject, do you mean "without
> blob and tree objects"? If yes, there is some code in the
> md/filter-trees branch that can do that with a "--filter=tree:0"
> option.

I too was wondering what the "without any objects" thing meant
myself.

What would it take on top of the following sequence to create such
an ultra-lazy clone?

	$ mkdir very-sparse && cd very-sparse
	$ git init
	$ git remote add origin $URL

At this point, the repository does not have any object, but it
already knows whom to talk to to get the objects in the project.
The remote must be configured so that it is willing to feed you any
object you name, but would it be just some "git config" magic after
the above three steps to make it as if it was prepared with "git
clone --filter="?  If so, what does that magic look like?

Thanks.

  reply	other threads:[~2018-09-11 17:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11  7:29 Is it possible to git clone --filter= without any objects? Ciro Santilli
2018-09-11 17:15 ` Stefan Beller
2018-09-11 17:19   ` Jonathan Tan
2018-09-11 17:46     ` Junio C Hamano [this message]
2018-09-11 18:29       ` Ciro Santilli
2018-09-12  1:12         ` Matthew DeVore

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

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

  git send-email \
    --in-reply-to=xmqqo9d4orji.fsf@gitster-ct.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=ciro.santilli@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jonathantanmy@google.com \
    --cc=matvore@google.com \
    --cc=sbeller@google.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.
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 NNTP newsgroup(s).