diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2008-04-27 13:39:21 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-04 17:41:44 -0700 |
commit | 19757d80e522e9f04c125ad5977c3a79db99b192 (patch) | |
tree | 56c1ac3eee61eaf56a9ad1c20cb5ad34be886377 /cache.h | |
parent | e142a3c61d22c3a3c081cb2c693e4d3725c21522 (diff) | |
download | git-19757d80e522e9f04c125ad5977c3a79db99b192.tar.gz git-19757d80e522e9f04c125ad5977c3a79db99b192.tar.xz |
Add a function to set a non-default work tree
This function may only be used before the work tree is used.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -311,6 +311,7 @@ extern char *get_index_file(void); extern char *get_graft_file(void); extern int set_git_dir(const char *path); extern const char *get_git_work_tree(void); +extern void set_git_work_tree(const char *tree); #define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES" |