git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Mark Rushakoff <mark@influxdata.com>
Cc: git@vger.kernel.org
Subject: Re: Possible to unshallow or deepen based on local objects?
Date: Thu, 08 Aug 2019 15:33:58 -0700	[thread overview]
Message-ID: <xmqqftmbe17t.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <CALxJwdM0ifKoQDMXJuuWyeXdR9-oxVpOyODBO0TXcz=d+0vq2Q@mail.gmail.com> (Mark Rushakoff's message of "Thu, 8 Aug 2019 15:17:43 -0700")

Mark Rushakoff <mark@influxdata.com> writes:

> I have a shallow clone of a repository. Then sometime later, I obtain a bundle
> containing full history.
>
> I thought I could use git fetch --unshallow /path/to/repo.bundle
> mybranch:mybranch, but I've found that git does not support shallow fetches
> from a bundle and that unshallow is actually an alias for --depth=2147483647 in
> 4dcb167fc3 (fetch: add --unshallow for turning shallow repo into complete one,
> 2013-01-11).
>
> If I do a plain fetch from the bundle, I can manually modify .git/shallow to
> "unshallow" my repository like the previous email in this thread. But what I
> think I still want here is a way to tell git "here are all the objects I have;
> update the shallow boundaries accordingly."

It sounds like a quite sensible request to me.  

Offhand, I do not think of anything that would make it fundamentally
impossible to allow us to first add objects to the .git/objects
directory by whatever means available to you (including, but not
limited to, exploding the object data from a full bundle) and then
to tell Git to see if there (still) are missing commits and objects
that ought to exist but don't that necessitates the repository to be
marked "shallow", and adjust the boundary.

I however do not think there is such a code already written X-<.

      reply	other threads:[~2019-08-08 22:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26 18:43 Possible to unshallow or deepen based on local objects? Mark Rushakoff
2019-08-08 22:17 ` Mark Rushakoff
2019-08-08 22:33   ` Junio C Hamano [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=xmqqftmbe17t.fsf@gitster-ct.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=mark@influxdata.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).