P. Siehr
P. Siehr

Reputation: 575

git-gui clone: What is the difference of each "Clone Type"?

Using the standard git-gui (v 0.20.GITGUI), there are three "Clone type" options, when you want to clone a repository:

Git-Gui clone options

What is the difference between these three types?
Is this a git-gui thing, or is there a command line equivalent?

Upvotes: 4

Views: 1508

Answers (1)

VonC
VonC

Reputation: 1324278

Those messages come from commit ab08b36, gitgui-0.9.0, Sept. 2007 (ten years ago!), by Shawn O. Pearce (spearce)

Shawn commented at the time:

If the source repository is on the local disk we try to use a hardlink to connect the objects into the new clone as this can be many times faster than copying the objects or packing them and passing the data through a pipe to index-pack.
Unlike git-clone, we stick to pure Tcl [file link -hard] operation thus avoiding the need to fork a cpio process to setup the hardlinks.

If hardlinks do not appear to be supported (e.g. filesystem doesn't allow them or we are crossing filesystem boundaries) we use file copying instead.

So there is no exact git clone equivalent.
But shared and hardlink applies only for cloning local repos and are equivalent to git clone -l and git clone --shared.
Full will copy all pack files.

Upvotes: 2

Related Questions