git2r
git2r copied to clipboard
Shallow clones
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()
Similarly, it would be useful to support the --branch
argument like the git CLI
Shallow clones are not supported by libgit2 https://github.com/libgit2/libgit2/issues/3058