aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-04-27 13:39:21 -0400
committerJunio C Hamano <gitster@pobox.com>2008-05-04 17:41:44 -0700
commit19757d80e522e9f04c125ad5977c3a79db99b192 (patch)
tree56c1ac3eee61eaf56a9ad1c20cb5ad34be886377 /cache.h
parente142a3c61d22c3a3c081cb2c693e4d3725c21522 (diff)
downloadgit-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 9da9179af..aba029315 100644
--- a/cache.h
+++ b/cache.h
@@ -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"