Add cheap local clone '-s' flag to git-clone-script
authorJunio C Hamano <junkio@cox.net>
Mon, 15 Aug 2005 00:25:57 +0000 (17:25 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 15 Aug 2005 10:00:20 +0000 (03:00 -0700)
commitaae4f42c45704986210ea2a30bd31afba1008275
treef77b9d3cc49a55a517d7b09b53c437bc18ac0509
parentd5a63b99835017d2638e55a7e34a35a3c1e80f1f
Add cheap local clone '-s' flag to git-clone-script

Using the $GIT_OBJECT_DIRECTORY/info/alternates mechanism,
create a new repository that borrows objects from the original
repository when --shared flag is given in addition to --local.

It is worth pointing out that the "cloned" repository depends on
the original repository, so this should be used only when you
can reasonably trust that the original repository would not
disappear without your knowing.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-clone-script