shallow: add setup_temporary_shallow()
commit08ea65ad13faaf24f57732cdc8af3d830d4b367f
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 16 Aug 2013 09:52:04 +0000 (16 16:52 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Aug 2013 18:51:54 +0000 (28 11:51 -0700)
treec1143ed482a92214c09223fd32914292e4db1dd7
parent6a3bbb4db409c5417960ffd3f020f75e0cb36f81
shallow: add setup_temporary_shallow()

This function is like setup_alternate_shallow() except that it does
not lock $GIT_DIR/shallow.  It is supposed to be used when a program
generates temporary shallow for use by another program, then throw
the shallow file away.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h
shallow.c