Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shallow clone with JGIT

Tags:

How I can do

git clone --depth 1 ...

with JGIT library?

like image 574
Timothy Klim Avatar asked Jul 13 '12 17:07

Timothy Klim


People also ask

What does shallow clone mean?

Shallow Cloning: Definition: "A shallow copy of an object copies the 'main' object, but doesn't copy the inner objects." When a custom object (eg. Employee) has just primitive, String type variables then you use Shallow Cloning.


1 Answers

You can't, JGit doesn't yet support shallow clones on the client side (it does on the server side, though).

like image 74
Matthias Sohn Avatar answered Oct 27 '22 20:10

Matthias Sohn