git2r
git2r copied to clipboard
git clone --depth argument
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?
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.
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