Thanks Jacob!

It seems that --depth=x  a.k.a. Shallow Clones used to be a problem prior
to Git v1.9 but are now more fully featured. They're still downplayed in
"merge-based workflows" but not an actual problem anymore:
https://stackoverflow.com/questions/6941889/is-it-safe-to-shallow-clone-with-depth-1-create-commits-and-pull-updates-aga

A repo can be started with a shallow clone and full history pulled later if
needed with (Git 2.8+):
*git pull --unshallow*

So for Leo's current commit rate a shallow clone with a history of
~3-4months would be:

git clone --depth=500

To go back to the last tagged release ask someone who has a clone to report
result of `git rev-list HEAD ^5.6 --count` (412 at present moment or maybe
https://github.com/cjlarose/github-rev-list. You could also look at the dev
*NNN* at https://pypi.python.org/pypi/leo and hazard an estimate.

matt

On Thu, Dec 7, 2017 at 9:01 PM, Jacob MacDonald <[email protected]> wrote:

> Check out the documentation for the `--depth` flag to `git-clone`. It will
> pull only the selected number of commits from a single branch, which means
> your initial clone is far smaller. However, it makes it very difficult to
> do development later, so make sure the clone will only be used for reading!
>
> Jacob.
>
> On Thu, Dec 7, 2017 at 10:51 PM Matt Wilkie <[email protected]> wrote:
>
>> Somebody (Kent?) posted a git clone command that was faster than the
>> typical:
>>
>>      git clone https://github.com/leo-editor/leo-editor.git
>>
>> I think it involved telling git there was no need to go back to the
>> beginning of time, just the previous N months. Or something?
>>
>> matt
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "leo-editor" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/leo-editor.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to