Coder Social home page Coder Social logo

Comments (8)

tfoote avatar tfoote commented on June 25, 2024

vcstools already has it. On checkout use shallow=True.

from bloom.

wjwwood avatar wjwwood commented on June 25, 2024

Neat, I'll add that and run it against a few repositories to see how well it works.

from bloom.

tfoote avatar tfoote commented on June 25, 2024

I don't think it will work in this case:

From here: http://www.kernel.org/pub/software/scm/git/docs/git-clone.html

A shallow repository has a number of limitations (you cannot clone or

fetch from it, nor push from nor into it), but is adequate if you are only
interested in the recent history of a large project with a long history,
and would want to send in fixes as patches

On Thu, Oct 18, 2012 at 10:49 AM, William Woodall
[email protected]:

Neat, I'll add that and run it against a few repositories to see how well
it works.


Reply to this email directly or view it on GitHubhttps://github.com/ros/bloom/issues/42#issuecomment-9573919.

Tully Foote
[email protected]
(650) 475-2827

from bloom.

wjwwood avatar wjwwood commented on June 25, 2024

That should be fine (for the upstream), I clone it with shallow, then query a file in a branch and then call git archive on a tag. We'll see if that works.

from bloom.

wjwwood avatar wjwwood commented on June 25, 2024

It seems to run fine (re)importing ros_comm, but it is hard for me to tell if I saved much time, I'll look into a larger checkout.

from bloom.

tfoote avatar tfoote commented on June 25, 2024

It does not necessarily save a lot of data:
http://blogs.gnome.org/simos/2009/04/18/git-clones-vs-shallow-git-clones/

On Thu, Oct 18, 2012 at 11:36 AM, William Woodall
[email protected]:

It seems to run fine (re)importing ros_comm, but it is hard for me to tell
if I saved much time, I'll look into a larger checkout.


Reply to this email directly or view it on GitHubhttps://github.com/ros/bloom/issues/42#issuecomment-9576612.

Tully Foote
[email protected]
(650) 475-2827

from bloom.

vrabaud avatar vrabaud commented on June 25, 2024

well, this comparison is about GNOME modules that have evolved over time and they probably just got bigger and bigger.

If you look at vision_opencv, it's 876K. The .git folder is 18 M .... (long history, parts of OpenCV were in there and so on)

from bloom.

wjwwood avatar wjwwood commented on June 25, 2024

The shallow_checkout option is passed to vcstools as of 0.2.

from bloom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.