Re: [PATCH] clone: allow initial sparse checkouts

2014-02-24 Thread Junio C Hamano
Robin H. Johnson robb...@gentoo.org writes: The only other clean alternative would be implementing ONLY --sparse-checkout-from, and letting uses use fds creatively: --sparse-checkout-from (echo X; echo Y) Not all POSIX shells have such an abomination that is process substitution. You can

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-24 Thread Robin H. Johnson
On Mon, Feb 24, 2014 at 09:47:16AM -0800, Junio C Hamano wrote: Robin H. Johnson robb...@gentoo.org writes: The only other clean alternative would be implementing ONLY --sparse-checkout-from, and letting uses use fds creatively: --sparse-checkout-from (echo X; echo Y) Not all POSIX shells

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-24 Thread Junio C Hamano
Robin H. Johnson robb...@gentoo.org writes: On Mon, Feb 24, 2014 at 09:47:16AM -0800, Junio C Hamano wrote: Robin H. Johnson robb...@gentoo.org writes: The only other clean alternative would be implementing ONLY --sparse-checkout-from, and letting uses use fds creatively:

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-23 Thread Duy Nguyen
On Sun, Feb 23, 2014 at 2:32 PM, Robin H. Johnson robb...@gentoo.org wrote: 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

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-23 Thread Robin H. Johnson
On Sun, Feb 23, 2014 at 03:43:47PM +0700, Duy Nguyen wrote: On Sun, Feb 23, 2014 at 2:32 PM, Robin H. Johnson robb...@gentoo.org wrote: This patch implements easily accessible sparse checkouts during clone, in the --sparse-checkout option. $ git clone REPO --sparse-checkout PATH Or

[PATCH] clone: allow initial sparse checkouts

2014-02-22 Thread Robin H. Johnson
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. This patch implements easily accessible sparse checkouts during clone, in the --sparse-checkout option. $ git clone REPO

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-22 Thread Duy Nguyen
On Sun, Feb 23, 2014 at 9:31 AM, Robin H. Johnson robb...@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

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-22 Thread Robin H. Johnson
On Sun, Feb 23, 2014 at 09:52:16AM +0700, Duy Nguyen wrote: On Sun, Feb 23, 2014 at 9:31 AM, Robin H. Johnson robb...@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