Add set_git_dir() function
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 1 Aug 2007 00:29:38 +0000 (01:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Aug 2007 07:38:31 +0000 (00:38 -0700)
With the function set_git_dir() you can reset the path that will
be used for git_path(), git_dir() and friends.

The responsibility to close files and throw away information from the
old git_dir lies with the caller.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found