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

Re: [PATCH] clone: allow initial sparse checkouts

From
Robin H. Johnson <robbat2@gentoo.org>
Date
Feb 23, 2014, 07:32 UTC
Message-ID
<robbat2-20140223T072340-334493350Z@orbis-terrarum.net>
In-Reply-To
<CACsJy8BKJ4HzXLcajC8cXviD4hboRPOYhWSen7H5Ta=_JuXNjw@mail.gmail.com>
On Sun, Feb 23, 2014 at 09:52:16AM +0700,  Duy Nguyen wrote:
Show 5 quoted lines
> On Sun, Feb 23, 2014 at 9:31 AM, Robin H. Johnson <robbat2@gentoo.org> wrote:
> > Presently if you want to perform a sparse checkout, you must either do a
> > full clone and then recheckout, or do a git init, manually set up
> > sparse, and then fetch and checkout.
> I think you could do "clone -n" (no checkout), set up sparse, then checkout.
Yes, I think there are a few more ways, but still would be nice to 
Show 6 quoted lines
> 
> > This patch implements easily accessible sparse checkouts during clone,
> > in the --sparse-checkout option.
> >
> > $ git clone REPO --sparse-checkout PATH
> Or take a file as input if there are lots of paths/rules.

How much demand for taking a file of rules, and opinions of syntax to do that vs specify on the commandline?

--sparse-checkout-from FILE vs. --sparse-checkout '<PATH' or something other prefix character.

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Previous: Duy NguyenNext: Duy Nguyen
Message 3 of 8 in “clone: allow initial sparse checkouts”
  1. clone: allow initial sparse checkoutsRobin H. Johnson, Feb 23, 2014
  2. Duy NguyenFeb 23, 2014
  3. Robin H. JohnsonFeb 23, 2014
  4. Duy NguyenFeb 23, 2014
  5. Robin H. JohnsonFeb 23, 2014
  6. Junio C HamanoFeb 24, 2014
  7. Robin H. JohnsonFeb 24, 2014
  8. Junio C HamanoFeb 25, 2014

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.