aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-06-06 16:31:29 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-06 17:09:45 -0700
commit95fc75129acf14d980bdd56b9b2ee74190f81d91 (patch)
treed3a6988ffe8b9ae0b554ddb4485ffb0f1cac0dc7 /cache.h
parent451322512f2f72fe07461a8aeae0df4cfce7fda1 (diff)
downloadgit-95fc75129acf14d980bdd56b9b2ee74190f81d91.tar.gz
git-95fc75129acf14d980bdd56b9b2ee74190f81d91.tar.xz
[PATCH] Operations on refs
This patch adds code to read a hash out of a specified file under {GIT_DIR}/refs/, and to write such files atomically and optionally with an compare and lock. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 95353a10a..74307f182 100644
--- a/cache.h
+++ b/cache.h
@@ -117,6 +117,7 @@ extern unsigned int active_nr, active_alloc, active_cache_changed;
#define INDEX_ENVIRONMENT "GIT_INDEX_FILE"
extern char *get_object_directory(void);
+extern char *get_refs_directory(void);
extern char *get_index_file(void);
#define ALTERNATE_DB_ENVIRONMENT "GIT_ALTERNATE_OBJECT_DIRECTORIES"