ropensci / git2r

R bindings to the libgit2 library
https://docs.ropensci.org/git2r
GNU General Public License v2.0
215 stars 58 forks source link

Shallow clones #129

Open hadley opened 9 years ago

hadley commented 9 years ago

It's often useful to be able to "shallow" clone a repo, e.g. git clone URL --depth 1 --no-hardlinks. Could we please have depth option for clone()

hadley commented 9 years ago

Similarly, it would be useful to support the --branch argument like the git CLI

stewid commented 9 years ago

Shallow clones are not supported by libgit2 https://github.com/libgit2/libgit2/issues/3058