Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-27 Thread Jeff King
On Sun, May 24, 2015 at 12:07:53PM -0700, Junio C Hamano wrote: Jeff King p...@peff.net writes: Having slept on it, I really think --seed should be fetch from the seed into temp refs, and not what I posted earlier. Yeah, I think that is the right way to do it. In the meantime, do you

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-27 Thread Junio C Hamano
Jeff King p...@peff.net writes: On Sun, May 24, 2015 at 12:07:53PM -0700, Junio C Hamano wrote: Jeff King p...@peff.net writes: Having slept on it, I really think --seed should be fetch from the seed into temp refs, and not what I posted earlier. Yeah, I think that is the right way to

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-24 Thread Junio C Hamano
Jeff King p...@peff.net writes: Having slept on it, I really think --seed should be fetch from the seed into temp refs, and not what I posted earlier. Yeah, I think that is the right way to do it. And it happens to mesh well with the (not so well advertised but not so well hidden) plan to

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-22 Thread Jeff King
On Thu, May 21, 2015 at 06:05:31PM +0200, Johannes Schindelin wrote: +--seed repository:: + A convenient shorthand for `--dissociate --reference=repository`. + Since you want to advertise this as an easier way than `--dissociate --reference=repository`, it might make sense to avoid

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-22 Thread Johannes Schindelin
Hi Philip, On 2015-05-21 21:45, Philip Oakley wrote: From: Johannes Schindelin johannes.schinde...@gmx.de On 2015-05-21 06:16, Jeff King wrote: diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index f1f2a3f..ffeb03b 100644 --- a/Documentation/git-clone.txt +++

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-22 Thread Jeff King
On Fri, May 22, 2015 at 08:37:56AM +0200, Johannes Schindelin wrote: +--seed repository|bundle:: +Fetch objects from repository or bundle instead of the clone URL when possible. This is useful when a (possibly partial) clone already exists locally, to avoid transferring the same

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-21 Thread Philip Oakley
From: Johannes Schindelin johannes.schinde...@gmx.de Hi Peff, On 2015-05-21 06:16, Jeff King wrote: diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index f1f2a3f..ffeb03b 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -107,6 +107,9 @@

Re: [PATCH 3/3] clone: add `--seed` shorthand

2015-05-21 Thread Johannes Schindelin
Hi Peff, On 2015-05-21 06:16, Jeff King wrote: diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index f1f2a3f..ffeb03b 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -107,6 +107,9 @@ objects from the source repository into a pack in the

[PATCH 3/3] clone: add `--seed` shorthand

2015-05-20 Thread Jeff King
The safe way to use `--reference` is to add in the recent `--dissociate` option, which optimizes the initial clone, but does not create any obligation to avoid pruning or deleting the reference repository. However, it can be rather tricky to explain why two options are necessary, and why using