init, clone: support --separate-git-dir for .git file
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 19 Mar 2011 15:16:56 +0000 (22:16 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Mar 2011 04:48:19 +0000 (21:48 -0700)
commitb57fb80a7d7d19102b31ab94a28ed43ea1ee07bb
treec960ce2a4e566f9341f1623cf1f632cbda591166
parent9d379f4fd0a845aba3efa44b254d8e3905c3c029
init, clone: support --separate-git-dir for .git file

--separate-git-dir tells git to create git dir at the specified
location, instead of where it is supposed to be. A .git file that
points to that location will be put in place so that it appears normal
to repo discovery process.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-clone.txt
Documentation/git-init.txt
builtin/clone.c
builtin/init-db.c
cache.h
t/t0001-init.sh
t/t5601-clone.sh