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

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 22, 2015, 06:37 UTC
Message-ID
<1be7702fa53d1705e913aff2e00eac21@www.dscho.org>
In-Reply-To
<3516DC60279A42188EE2AA394921FC70@PhilipOakley>
Hi Philip,
On 2015-05-21 21:45, Philip Oakley wrote:
Show 35 quoted lines
> From: "Johannes Schindelin" <johannes.schindelin@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
>>> +++ b/Documentation/git-clone.txt
>>> @@ -107,6 +107,9 @@ objects from the source repository into a pack in
>>> the cloned repository.
>>>  transfer and stop borrowing from them after a clone is made
>>>  by making necessary local copies of borrowed objects.
>>>
>>> +--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 sending the reader that way, too.
>>
>> Maybe something like
>>
>> --seed <repository>::
>>    Fetch objects from <repository> instead of the clone URL when possible. This is useful when a (possibly partial) clone already exists locally, to avoid transferring the same objects again.
>>
> 
> Would it be worth mentioning here that a bundle is a satisfactory
> alternative to repository?
> 
> +--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 objects again.
> 
> I haven't checked if the invocation would accept a bundle filename,
> but I'm presuming it can in the same way that clone does.
The proof would lie in the pudding ;-) Would you mind testing whether it works with bundles?

Ciao, Dscho

Previous: Philip OakleyNext: Jeff King
Message 7 of 16 in “--seed as an alias for --dissociate --reference”
  1. 0/3 --seed as an alias for --dissociate --referenceJeff King, May 21, 2015
  2. 1/3 clone: use OPT_STRING_LIST for --referenceJeff King, May 21, 2015
  3. 2/3 clone: reorder --dissociate and --reference optionsJeff King, May 21, 2015
  4. 3/3 clone: add `--seed` shorthandJeff King, May 21, 2015
  5. Johannes SchindelinMay 21, 2015
  6. Philip OakleyMay 21, 2015
  7. Johannes SchindelinMay 22, 2015
  8. Jeff KingMay 22, 2015
  9. Junio C HamanoMay 24, 2015
  10. Jeff KingMay 27, 2015
  11. Junio C HamanoMay 27, 2015
  12. Jeff KingMay 22, 2015
  13. Junio C HamanoMay 21, 2015
  14. Jeff KingMay 21, 2015
  15. Junio C HamanoMay 21, 2015
  16. Michael HaggertyMay 24, 2015

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.