Re: [PATCH] clone: allow initial sparse checkouts

2014-02-24 Thread Junio C Hamano
"Robin H. Johnson" writes: > On Mon, Feb 24, 2014 at 09:47:16AM -0800, Junio C Hamano wrote: >> "Robin H. Johnson" writes: >> > The only other clean alternative would be implementing ONLY >> > --sparse-checkout-from, and letting uses use fds creatively: >> > --sparse-checkout-from <(echo X; ech

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" 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 su

Re: [PATCH] clone: allow initial sparse checkouts

2014-02-24 Thread Junio C Hamano
"Robin H. Johnson" 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 easily work it a

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 wrote: > >> > This patch implements easily accessible sparse checkouts during clone, > >> > in the --sparse-checkout option. > >> > > >> > $ git clone REPO --sparse-checkout PATH > >> O

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 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 deman

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 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

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 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 spar

[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