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

Re: Organizing (large) test data in git

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 27, 2007, 20:22 UTC
Message-ID
<Pine.LNX.4.63.0702272119430.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<17892.37416.358405.211524@lisa.zopyra.com>
Hi,
On Tue, 27 Feb 2007, Bill Lear wrote:
Show 18 quoted lines
> On Tuesday, February 27, 2007 at 21:14:07 (+0100) Johannes Schindelin writes:
> >> 
> >> Welll... it's not really a matter of capacity, though I do agree that
> >> lifting that limit will help.  We are more concerned with time to
> >> clone the repos over the (often very slow) corporate network, for
> >> example.  With future ratios of about 1% code to 99% test data, we
> >> hither and yon with little care, and a monster data repo that is
> >> (somehow) sanely managed with git as well.  I was just curious if
> >> others had run into the management problems that I mentioned with
> >> separating test data from code and what they may have done to surmount
> >> them.
> >
> >Okay I misunderstood, then.
> >
> >Do shallow clones help you?
> 
> Hmm, can't answer now, since I don't know what these are.  I shall
> investigate and see if they do.

Basically, shallow clones cut off branches at some point, even if those commits have references to their parents.

For example, if you have a linear branch HEAD~1000..HEAD, and you want to get just the latest two commits, a shallow clone will give you just HEAD~1..HEAD, pretending that HEAD~1 is a root commit (a commit without parents), when it is not.

But if you do not care for history, instead just for being up-to-date, it should help you.

Ciao, Dscho

P.S.: And no, I don't remember if you need to say "--depth 2" or "--depth 1" for that... Sorry

Previous: Bill LearNext: Bill Lear
Message 6 of 9 in “Organizing (large) test data in git”
  1. Bill LearFeb 27, 2007
  2. Johannes SchindelinFeb 27, 2007
  3. Bill LearFeb 27, 2007
  4. Johannes SchindelinFeb 27, 2007
  5. Bill LearFeb 27, 2007
  6. Johannes SchindelinFeb 27, 2007
  7. Bill LearFeb 27, 2007
  8. Johannes SchindelinFeb 27, 2007
  9. Junio C HamanoFeb 27, 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.