[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>
This commit is contained in:

committed by
Linus Torvalds

parent
451322512f
commit
95fc75129a
1
cache.h
1
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"
|
||||
|
Reference in New Issue
Block a user