git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: clarify git clone --local --shared --reference

From
Loeliger Jon-LOELIGER <jdl@freescale.com>
Date
Jun 8, 2007, 15:57 UTC
Message-ID
<AF0367BA48C55940A43CCF08DF35553C013C76BF@az33exm24.fsl.freescale.net>
In-Reply-To
<20070608053750.GB18521@spearce.org>
Shawn O. Pearce wrote:
Show 12 quoted lines
> 
> Brandon Casey <casey@nrlssc.navy.mil> wrote:
> > ok. I just want to make sure this is not really about prune'ing.
> > 
> > In the following, source and --shared repos are identical except...
> > 1) Source repo contains loose objects which are new commits.
> >    --shared repo does git-pull.
> >    we fast-forward, copying very little.
> >    success.
> 
> Copying nothing actually.  All of the objects required are in the
> source repository, so --shared needs nothing additional.

So the thing I find myself wanting to do is A "crib from local copy". That is, the network Cost is large, so when cloning point to a local (ie, already on same Filesystem) clone that is Similar, use it as a reference, but, in the end, Create a complete copy into the new repository.

I don't want it hard linked with --local. I don't want it shared with --shared. I don't want it as an altrnate source with --reference.

What I want is a new, clean, complete, unshared repository.

But for efficiency reasons, I want to grab objects From a different, filesystem-local clone if possible.

Does that work?
jdl
Previous: Shawn O. PearceNext: Brandon Casey
Message 8 of 10 in “clarify git clone --local --shared --reference”
  1. Brandon CaseyJun 4, 2007
  2. Shawn O. PearceJun 5, 2007
  3. Brandon CaseyJun 5, 2007
  4. Shawn O. PearceJun 6, 2007
  5. Brandon CaseyJun 6, 2007
  6. Brandon CaseyJun 6, 2007
  7. Shawn O. PearceJun 8, 2007
  8. Loeliger Jon-LOELIGERJun 8, 2007
  9. Brandon CaseyJun 8, 2007
  10. Brandon CaseyJun 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.