git2r icon indicating copy to clipboard operation
git2r copied to clipboard

git clone --depth argument

Open jakob-r opened this issue 8 years ago • 2 comments
trafficstars

Hi, a feature I would like is the depth argument in clone(). Sometimes I am sure that I don't need the history of a project locally. What are your thoughts?

jakob-r avatar Sep 26 '17 09:09 jakob-r

I would also find this very useful - I am using git2r to maintain a common drat repo across four different projects - my CI has to clone and update the drat repo each build, which unfortunately includes every binary ever built ever - we are up to 75mb now, and it will only get slower.

I will take a look and see if this is straightforward to add.

nfultz avatar Dec 18 '17 19:12 nfultz

It looks like this feature is still open upstream in libgit2 https://github.com/libgit2/libgit2/issues/3058 - there seems to be ongoing work to add this feature here - https://github.com/libgit2/libgit2/pull/4331

nfultz avatar Dec 18 '17 20:12 nfultz